SlideShare a Scribd company logo
1 of 41
Download to read offline
CODECS AND COMPRESSION
          An overview of main concepts and standards




          Marco Venanzi
            @marcovena


martedì 18 ottobre 2011                                1
Run through most common
                compression standards and formats
                Images • Audio • Video
                Pros and cons of each format
                Clarification on some confusing
                terminologies


martedì 18 ottobre 2011                             2
Codecs vs File Formats
                              Image          File Formats
                             JPEG GIF       .3gp .mov .mp4
                          PNG BMP TIFF      .avi .mp3 .mpg



                              Audio             Video
                            WAV FLAC        H.264 MPEG4
                             MP3 AAC         MPEG2 DivX
                          AMR Vorbis MIDI     VP8 WebM


martedì 18 ottobre 2011                                      3
Loseless Lossy



martedì 18 ottobre 2011                    4
Images



martedì 18 ottobre 2011   5
BMP, TIFF

                          Almost uncompressed formats

                          Not used on the web, large dimensions

                          Allow multiple edits

                          Hi-quality processing

                          .bmp, .tiff files



martedì 18 ottobre 2011                                           6
JPEG
                Most common lossy compression
                format for photography

                10:1 compression with minimum
                degradation

                Not suitable for file editing, vector
                shapes and text drawing (artifacts)

                No transparency

                File Format: JPEG/Exif , .jpeg files




martedì 18 ottobre 2011                                7
GIF
               Popular file format, especially for
               little images, logos, animations

               max 256 colors - dithering

               Limited transparency (only 1
               color)

               Best replaced by PNG

               Still the most used format for
               simple animations




martedì 18 ottobre 2011                             8
PNG
       Born as improvement on GIF

       Better compression for graphics
       and vectors

       Loseless format, 8-bit alpha
       blending

       Not fully supported by old
       browsers

       .png files




martedì 18 ottobre 2011                  9
full transparency




                          no transparency   Just 1 bit transparency




martedì 18 ottobre 2011                                               10
Pixel • Resolution • dpi • ppi

                      A lot of          Monitors display pixels, and
                     confusion          printers produce dots



                                                 Screen 72 ppi,
                                                 Print 300 ppi
           PPI is the bridge between             Fine Art 600 ppi
           digital and physical world



martedì 18 ottobre 2011                                                11
Pixel • Resolution • dpi • ppi
                             I want a 30x40 cm print
                      12”x16” inches at 300 ppi is 3600x4800




martedì 18 ottobre 2011                                        12
Audio



martedì 18 ottobre 2011   13
Loseless
                Best Quality
                Audiophile, Archive, Editing, Hi-Fi

                FLAC, WMA Loseless, Dolby TrueHD




                                                Lossy
                Psycoacoustics
                Some info not perceived by the auditory system

                High frequencies, tones covered by a louder sound (masking)




martedì 18 ottobre 2011                                                       14
AAC                             AMR-NB
                          AAC+            MP3             AMR-WB
                          E-AAC+                          AMR-WB+



                                          Vorbis
                           WAV                             MIDI
                                          WMA



                                    File formats
                     .3gp, .mp4, .m4a, .3ga, .mp3, .aac, .amr, .ogg


martedì 18 ottobre 2011                                               15
martedì 18 ottobre 2011   16
martedì 18 ottobre 2011   16
Bitrate
                          320 kbps       Channels
                                         Mono, Stereo, 5.1



                              Sampling Rate
                              44kHz




martedì 18 ottobre 2011                                      17
MP3
                          Most common lossy compression
                          format
                          128kbps(Radio Quality)

                          192kbps(CD)

                          320kbps(Hi-Quality)


                          Lots of songs in your
                          pocket
                          File Format: only .mp3 files




martedì 18 ottobre 2011                                   18
AAC
                          Default audio format for
                          iTunes, iPod, PS3
                          Improvement on mp3 (~20% gain)
                          especially at lower bitrates

                             from 8 to 96 kHz (MP3:16 to
                             48 kHz)

                             Up to 48 channels

                             Lots of tools and configuration that
                             define different profiles.

                          AAC 128kbps ~ MP3 160kbps

                          File Format: .mp4, .m4a, .3gp, .aac


martedì 18 ottobre 2011                                            19
AAC+                                Enhanced AAC+



     Spectral Band Replication                    Parametric Stereo
     creation of higher frequences by an          Downmix of 2 stereo channels into a mono
     approx. of lower armonies (psycoacoustics)   channel along with PS info




                                                  Works at low bitrates (~24kbps)
     AAC 60kbps = AAC+ 48kbps                     > 48kbps is transparent
     AAC+ 32kbps >> AAC 48kbps                    Backward compatible




martedì 18 ottobre 2011                                                                      20
AMR-NB
                Low quality for speech - Based on ACELP®

                Sampling frequency 8 kHz

                8 source codecs with bit-rates range 4kbps~12kbps

                Link adaptation
                on low signal condition the codec switches to lower bitrate

                AMR utilizes Discontinuous Transmission (DTX), with Voice Activity Detection
                (VAD) and Comfort Noise Generation (CNG) to reduce bandwidth usage during
                silence periods




martedì 18 ottobre 2011                                                                        21
AMR-WB
                          Sampling frequency 16 kHz

                          9 configurations with bitrates
                          6~23kbps


                          File Format: .3gp, .amr


martedì 18 ottobre 2011                                   22
Video

martedì 18 ottobre 2011           23
Frame rate
                    25 fps
                                                   Bit Rate
                                                   Variable, Constant


                          Resolution
                          QVGA, VGA, 720p, 1080p




martedì 18 ottobre 2011                                                 24
RESOLUTION
martedì 18 ottobre 2011   25
FRAME RATE

               Number of still images in a time unit

               10 fps is the minimum frame rate to
               achieve motion illusion.




martedì 18 ottobre 2011                                26
Deinterlace
             Due to old TVs and technology limits

             Not possible to shoot fluid full frame videos
             (max 25fps)

             Half the frame in two subsequent instants

             Progressive displays have to reconstruct
             the full frame but the result is not pleasant



                   DEINTERLACE ALGORITHMS


martedì 18 ottobre 2011                                      27
Chroma Subsampling
                               Human eye is less sensitive to color than luminance

                          Bandwidth can be optimized by storing more luminance detail
                                                                     than color detail
                                                           (cones are two times rods)




martedì 18 ottobre 2011                                                                  28
Common codecs
            MJPEG                       MPEG2

          Sequence of JPEG frames       Widespread codec for many years
          Easy to process               On DVD, DVB, Satellite
           MJPEG
          Highly inefficient             Not suitable for low bitrates
          .avi files                     .mpg files
             MPEG2 (used in DVD)

            MPEG4                         H.263
           h.263
          Improvements on MPEG2         developed by ITU-T in 1995
          Used in DivX, Quicktime       Low bit rate encoding
          .mp4, .m4v, .mov .divx .avi   H.323 (RTP/IP video conf RTP/IP),
                                        H.320 (ISDN video conf), RTSP
                                        (Streaming) and SIP.



martedì 18 ottobre 2011                                                     29
H.264
        Blu-ray Discs
        Streaming (Vimeo, YouTube, and the iTunes Store)
        Web software (Adobe Flash Player, Microsoft Silverlight)
        Broadcast services for DVB
        Direct-broadcast, cable television services
        Real-time videoconferencing



martedì 18 ottobre 2011                                            30
H.264
   High efficiency (50% compared to MPEG-2)


   Lot of tools and algorithms that can be combined in
   different profiles and levels


   Quality depends also on the encoder implementation.
   H264 defines the structure and the tools but the intrinsic
   algorithms are open for improvement.



martedì 18 ottobre 2011                                        31
Other codecs
          VC-1
          Started by Microsoft as a proprietary protocol and released in
          2006 as a SMTPE standard

          Used In HD-DVD, BlueRay, Silverlight, Windows Media (.wmv)



          Theora
          Open Codec Developed By Xiph.org
          OGG Container And Matroska (.mkv)
          Same Performance As MPEG4 Part 2 Codec


martedì 18 ottobre 2011                                                    32
The Future



martedì 18 ottobre 2011   33
WebP
                                  H.265
                                    JpegMini
          WebM
                                 JpegXR
                   AMR-WB+
martedì 18 ottobre 2011                        34
martedì 18 ottobre 2011   35
H.265
                          High Efficiency Video Coding (HEVC)




                 50 percent increase in efficiency and 3 times complexity



martedì 18 ottobre 2011                                                    36
H.265 - Timeline


                          2013: coding standard published




       2012: draft version of                               3-5 years before commercial
      the standard expected                                 products




martedì 18 ottobre 2011                                                                   37
Higher Resolutions




martedì 18 ottobre 2011                        38
Focus is not on encoding but on delivery

            Dull scene for codecs lately
            Adaptive Bit Rate Streaming


                                           HTTP Live Streaming
                                           Apple


                                           HTTP Dynamic Streaming
                                           Adobe




martedì 18 ottobre 2011                                             39
Questions?




martedì 18 ottobre 2011                40

More Related Content

Viewers also liked

職災勞工保護法 行政院版
職災勞工保護法 行政院版職災勞工保護法 行政院版
職災勞工保護法 行政院版Willy Chen
 
BPCO IPERTENSIONE POLMONARE-PH COPD
BPCO IPERTENSIONE POLMONARE-PH COPDBPCO IPERTENSIONE POLMONARE-PH COPD
BPCO IPERTENSIONE POLMONARE-PH COPDPAHUPDATE
 
In contact presentation
In contact presentationIn contact presentation
In contact presentationChris May
 
Style Validator at breakout session of TPAC2015
Style Validator at breakout session of TPAC2015Style Validator at breakout session of TPAC2015
Style Validator at breakout session of TPAC2015Takeharu Igari
 
Socialondemand newsondemand purechannelapps_2014
Socialondemand newsondemand purechannelapps_2014Socialondemand newsondemand purechannelapps_2014
Socialondemand newsondemand purechannelapps_2014Chris May
 
Cindy lore de angel
Cindy lore de angelCindy lore de angel
Cindy lore de angelpanda27
 
UOW-Caching and new ways to improve response time (Paper)
UOW-Caching and new ways to improve response time (Paper)UOW-Caching and new ways to improve response time (Paper)
UOW-Caching and new ways to improve response time (Paper)Guson Kuntarto
 
201307苦勞季刊vol.5
201307苦勞季刊vol.5201307苦勞季刊vol.5
201307苦勞季刊vol.5Willy Chen
 
Bridge metrics channel marketing overview 2013
Bridge metrics channel marketing overview 2013Bridge metrics channel marketing overview 2013
Bridge metrics channel marketing overview 2013Chris May
 
Put your polling station on the map
Put your polling station on the mapPut your polling station on the map
Put your polling station on the mapFiifi Baidoo
 
Mini market bab ii
Mini market   bab iiMini market   bab ii
Mini market bab iiimecommunity
 
01 young entrepreneur survey ilo east - executive summary
01 young entrepreneur survey   ilo east - executive summary01 young entrepreneur survey   ilo east - executive summary
01 young entrepreneur survey ilo east - executive summaryimecommunity
 
Mini market bab iv
Mini market   bab ivMini market   bab iv
Mini market bab ivimecommunity
 
Tips for Students to Maintain their Motivation
Tips for Students to Maintain their MotivationTips for Students to Maintain their Motivation
Tips for Students to Maintain their MotivationDamian T. Gordon
 
Corporate training - Mind Programming - Kushalta Academy
Corporate training - Mind Programming - Kushalta AcademyCorporate training - Mind Programming - Kushalta Academy
Corporate training - Mind Programming - Kushalta AcademyJohn Bhatt
 
Scrisoare catre Mos Craciun
Scrisoare catre Mos CraciunScrisoare catre Mos Craciun
Scrisoare catre Mos CraciunDenisa Lombrea
 

Viewers also liked (20)

職災勞工保護法 行政院版
職災勞工保護法 行政院版職災勞工保護法 行政院版
職災勞工保護法 行政院版
 
Modul 4 kab
Modul 4 kabModul 4 kab
Modul 4 kab
 
One Un Training Pdf
One Un Training PdfOne Un Training Pdf
One Un Training Pdf
 
BPCO IPERTENSIONE POLMONARE-PH COPD
BPCO IPERTENSIONE POLMONARE-PH COPDBPCO IPERTENSIONE POLMONARE-PH COPD
BPCO IPERTENSIONE POLMONARE-PH COPD
 
In contact presentation
In contact presentationIn contact presentation
In contact presentation
 
Style Validator at breakout session of TPAC2015
Style Validator at breakout session of TPAC2015Style Validator at breakout session of TPAC2015
Style Validator at breakout session of TPAC2015
 
Socialondemand newsondemand purechannelapps_2014
Socialondemand newsondemand purechannelapps_2014Socialondemand newsondemand purechannelapps_2014
Socialondemand newsondemand purechannelapps_2014
 
Cindy lore de angel
Cindy lore de angelCindy lore de angel
Cindy lore de angel
 
UOW-Caching and new ways to improve response time (Paper)
UOW-Caching and new ways to improve response time (Paper)UOW-Caching and new ways to improve response time (Paper)
UOW-Caching and new ways to improve response time (Paper)
 
201307苦勞季刊vol.5
201307苦勞季刊vol.5201307苦勞季刊vol.5
201307苦勞季刊vol.5
 
Bridge metrics channel marketing overview 2013
Bridge metrics channel marketing overview 2013Bridge metrics channel marketing overview 2013
Bridge metrics channel marketing overview 2013
 
Put your polling station on the map
Put your polling station on the mapPut your polling station on the map
Put your polling station on the map
 
Mini market bab ii
Mini market   bab iiMini market   bab ii
Mini market bab ii
 
I like it
I like itI like it
I like it
 
01 young entrepreneur survey ilo east - executive summary
01 young entrepreneur survey   ilo east - executive summary01 young entrepreneur survey   ilo east - executive summary
01 young entrepreneur survey ilo east - executive summary
 
Mini market bab iv
Mini market   bab ivMini market   bab iv
Mini market bab iv
 
Tips for Students to Maintain their Motivation
Tips for Students to Maintain their MotivationTips for Students to Maintain their Motivation
Tips for Students to Maintain their Motivation
 
Exp imp-bab-01
Exp imp-bab-01Exp imp-bab-01
Exp imp-bab-01
 
Corporate training - Mind Programming - Kushalta Academy
Corporate training - Mind Programming - Kushalta AcademyCorporate training - Mind Programming - Kushalta Academy
Corporate training - Mind Programming - Kushalta Academy
 
Scrisoare catre Mos Craciun
Scrisoare catre Mos CraciunScrisoare catre Mos Craciun
Scrisoare catre Mos Craciun
 

Similar to Codecs and multimedia formats

3 multimedia elements - audio
3   multimedia elements - audio3   multimedia elements - audio
3 multimedia elements - audioKelly Bauer
 
Audio format ict
Audio format ictAudio format ict
Audio format ictAparna Sane
 
Encoding for i devices
Encoding for i devicesEncoding for i devices
Encoding for i devicescakogal
 
Commonly Used Image File Formats
Commonly Used Image File FormatsCommonly Used Image File Formats
Commonly Used Image File FormatsFatih Özlü
 
Image file formats
Image file formatsImage file formats
Image file formatsBob Watson
 
Audio And Image Files
Audio And Image FilesAudio And Image Files
Audio And Image FilesWynthorpe
 
Audio encoding principles
Audio encoding principlesAudio encoding principles
Audio encoding principlesPhillip Doyle
 
Difference Between Blu Ray And Dvd
Difference Between Blu Ray And DvdDifference Between Blu Ray And Dvd
Difference Between Blu Ray And DvdCognotion
 
AC Ryan Play On! HD
AC Ryan Play On! HDAC Ryan Play On! HD
AC Ryan Play On! HDAbe Olandres
 
multimedia data and file format
multimedia data and file formatmultimedia data and file format
multimedia data and file formatALOK SAHNI
 
Multimedia file formats
Multimedia file formatsMultimedia file formats
Multimedia file formatsShruti Garg
 

Similar to Codecs and multimedia formats (20)

3 multimedia elements - audio
3   multimedia elements - audio3   multimedia elements - audio
3 multimedia elements - audio
 
Audio format ict
Audio format ictAudio format ict
Audio format ict
 
Multimedia
MultimediaMultimedia
Multimedia
 
Spec00412
Spec00412Spec00412
Spec00412
 
Encoding for i devices
Encoding for i devicesEncoding for i devices
Encoding for i devices
 
Commonly Used Image File Formats
Commonly Used Image File FormatsCommonly Used Image File Formats
Commonly Used Image File Formats
 
Image file formats
Image file formatsImage file formats
Image file formats
 
Spec00413
Spec00413Spec00413
Spec00413
 
Audio And Image Files
Audio And Image FilesAudio And Image Files
Audio And Image Files
 
Audio encoding principles
Audio encoding principlesAudio encoding principles
Audio encoding principles
 
Difference Between Blu Ray And Dvd
Difference Between Blu Ray And DvdDifference Between Blu Ray And Dvd
Difference Between Blu Ray And Dvd
 
Audio Compression
Audio CompressionAudio Compression
Audio Compression
 
AC Ryan Play On! HD
AC Ryan Play On! HDAC Ryan Play On! HD
AC Ryan Play On! HD
 
Multimediafileformats
MultimediafileformatsMultimediafileformats
Multimediafileformats
 
Multimediafileformats
MultimediafileformatsMultimediafileformats
Multimediafileformats
 
Tablets
TabletsTablets
Tablets
 
multimedia data and file format
multimedia data and file formatmultimedia data and file format
multimedia data and file format
 
Call audio
Call audioCall audio
Call audio
 
Audio file format
Audio file formatAudio file format
Audio file format
 
Multimedia file formats
Multimedia file formatsMultimedia file formats
Multimedia file formats
 

Recently uploaded

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
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
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
 
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
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
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
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
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
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 

Recently uploaded (20)

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
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
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
 
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
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
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
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
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?
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 

Codecs and multimedia formats

  • 1. CODECS AND COMPRESSION An overview of main concepts and standards Marco Venanzi @marcovena martedì 18 ottobre 2011 1
  • 2. Run through most common compression standards and formats Images • Audio • Video Pros and cons of each format Clarification on some confusing terminologies martedì 18 ottobre 2011 2
  • 3. Codecs vs File Formats Image File Formats JPEG GIF .3gp .mov .mp4 PNG BMP TIFF .avi .mp3 .mpg Audio Video WAV FLAC H.264 MPEG4 MP3 AAC MPEG2 DivX AMR Vorbis MIDI VP8 WebM martedì 18 ottobre 2011 3
  • 4. Loseless Lossy martedì 18 ottobre 2011 4
  • 6. BMP, TIFF Almost uncompressed formats Not used on the web, large dimensions Allow multiple edits Hi-quality processing .bmp, .tiff files martedì 18 ottobre 2011 6
  • 7. JPEG Most common lossy compression format for photography 10:1 compression with minimum degradation Not suitable for file editing, vector shapes and text drawing (artifacts) No transparency File Format: JPEG/Exif , .jpeg files martedì 18 ottobre 2011 7
  • 8. GIF Popular file format, especially for little images, logos, animations max 256 colors - dithering Limited transparency (only 1 color) Best replaced by PNG Still the most used format for simple animations martedì 18 ottobre 2011 8
  • 9. PNG Born as improvement on GIF Better compression for graphics and vectors Loseless format, 8-bit alpha blending Not fully supported by old browsers .png files martedì 18 ottobre 2011 9
  • 10. full transparency no transparency Just 1 bit transparency martedì 18 ottobre 2011 10
  • 11. Pixel • Resolution • dpi • ppi A lot of Monitors display pixels, and confusion printers produce dots Screen 72 ppi, Print 300 ppi PPI is the bridge between Fine Art 600 ppi digital and physical world martedì 18 ottobre 2011 11
  • 12. Pixel • Resolution • dpi • ppi I want a 30x40 cm print 12”x16” inches at 300 ppi is 3600x4800 martedì 18 ottobre 2011 12
  • 14. Loseless Best Quality Audiophile, Archive, Editing, Hi-Fi FLAC, WMA Loseless, Dolby TrueHD Lossy Psycoacoustics Some info not perceived by the auditory system High frequencies, tones covered by a louder sound (masking) martedì 18 ottobre 2011 14
  • 15. AAC AMR-NB AAC+ MP3 AMR-WB E-AAC+ AMR-WB+ Vorbis WAV MIDI WMA File formats .3gp, .mp4, .m4a, .3ga, .mp3, .aac, .amr, .ogg martedì 18 ottobre 2011 15
  • 18. Bitrate 320 kbps Channels Mono, Stereo, 5.1 Sampling Rate 44kHz martedì 18 ottobre 2011 17
  • 19. MP3 Most common lossy compression format 128kbps(Radio Quality) 192kbps(CD) 320kbps(Hi-Quality) Lots of songs in your pocket File Format: only .mp3 files martedì 18 ottobre 2011 18
  • 20. AAC Default audio format for iTunes, iPod, PS3 Improvement on mp3 (~20% gain) especially at lower bitrates from 8 to 96 kHz (MP3:16 to 48 kHz) Up to 48 channels Lots of tools and configuration that define different profiles. AAC 128kbps ~ MP3 160kbps File Format: .mp4, .m4a, .3gp, .aac martedì 18 ottobre 2011 19
  • 21. AAC+ Enhanced AAC+ Spectral Band Replication Parametric Stereo creation of higher frequences by an Downmix of 2 stereo channels into a mono approx. of lower armonies (psycoacoustics) channel along with PS info Works at low bitrates (~24kbps) AAC 60kbps = AAC+ 48kbps > 48kbps is transparent AAC+ 32kbps >> AAC 48kbps Backward compatible martedì 18 ottobre 2011 20
  • 22. AMR-NB Low quality for speech - Based on ACELP® Sampling frequency 8 kHz 8 source codecs with bit-rates range 4kbps~12kbps Link adaptation on low signal condition the codec switches to lower bitrate AMR utilizes Discontinuous Transmission (DTX), with Voice Activity Detection (VAD) and Comfort Noise Generation (CNG) to reduce bandwidth usage during silence periods martedì 18 ottobre 2011 21
  • 23. AMR-WB Sampling frequency 16 kHz 9 configurations with bitrates 6~23kbps File Format: .3gp, .amr martedì 18 ottobre 2011 22
  • 25. Frame rate 25 fps Bit Rate Variable, Constant Resolution QVGA, VGA, 720p, 1080p martedì 18 ottobre 2011 24
  • 27. FRAME RATE Number of still images in a time unit 10 fps is the minimum frame rate to achieve motion illusion. martedì 18 ottobre 2011 26
  • 28. Deinterlace Due to old TVs and technology limits Not possible to shoot fluid full frame videos (max 25fps) Half the frame in two subsequent instants Progressive displays have to reconstruct the full frame but the result is not pleasant DEINTERLACE ALGORITHMS martedì 18 ottobre 2011 27
  • 29. Chroma Subsampling Human eye is less sensitive to color than luminance Bandwidth can be optimized by storing more luminance detail than color detail (cones are two times rods) martedì 18 ottobre 2011 28
  • 30. Common codecs MJPEG MPEG2 Sequence of JPEG frames Widespread codec for many years Easy to process On DVD, DVB, Satellite MJPEG Highly inefficient Not suitable for low bitrates .avi files .mpg files MPEG2 (used in DVD) MPEG4 H.263 h.263 Improvements on MPEG2 developed by ITU-T in 1995 Used in DivX, Quicktime Low bit rate encoding .mp4, .m4v, .mov .divx .avi H.323 (RTP/IP video conf RTP/IP), H.320 (ISDN video conf), RTSP (Streaming) and SIP. martedì 18 ottobre 2011 29
  • 31. H.264 Blu-ray Discs Streaming (Vimeo, YouTube, and the iTunes Store) Web software (Adobe Flash Player, Microsoft Silverlight) Broadcast services for DVB Direct-broadcast, cable television services Real-time videoconferencing martedì 18 ottobre 2011 30
  • 32. H.264 High efficiency (50% compared to MPEG-2) Lot of tools and algorithms that can be combined in different profiles and levels Quality depends also on the encoder implementation. H264 defines the structure and the tools but the intrinsic algorithms are open for improvement. martedì 18 ottobre 2011 31
  • 33. Other codecs VC-1 Started by Microsoft as a proprietary protocol and released in 2006 as a SMTPE standard Used In HD-DVD, BlueRay, Silverlight, Windows Media (.wmv) Theora Open Codec Developed By Xiph.org OGG Container And Matroska (.mkv) Same Performance As MPEG4 Part 2 Codec martedì 18 ottobre 2011 32
  • 34. The Future martedì 18 ottobre 2011 33
  • 35. WebP H.265 JpegMini WebM JpegXR AMR-WB+ martedì 18 ottobre 2011 34
  • 37. H.265 High Efficiency Video Coding (HEVC) 50 percent increase in efficiency and 3 times complexity martedì 18 ottobre 2011 36
  • 38. H.265 - Timeline 2013: coding standard published 2012: draft version of 3-5 years before commercial the standard expected products martedì 18 ottobre 2011 37
  • 40. Focus is not on encoding but on delivery Dull scene for codecs lately Adaptive Bit Rate Streaming HTTP Live Streaming Apple HTTP Dynamic Streaming Adobe martedì 18 ottobre 2011 39