SlideShare a Scribd company logo
1 of 12
Codecs




   Presented By:
   09BCE035
   Arpan Patel
What is a Codec ?
• Codec stands for enCOder/DECoder or
  COmpressor/DECompressor

• It is a software or hardware that
  compresses and decompresses audio and
  video data streams.
Why do we need codecs?
• The purpose of codecs is to reduce the size of digital audio
  samples and video frames in order to speed up transmission
  and save storage space.

• Because video and music files are large, they become difficult
  to transfer across the Internet quickly. To help speed up
  downloads, mathematical "codecs" were built to encode
  ("shrink") a signal for transmission and then decode it for
  viewing or editing. Without codecs, downloads would take
  three to five times longer than they do now.
Codec Types : Lossy or Lossless?
 • There are two types of codecs : lossy and lossless.

 • As the name implies, the lossy codecs shrink the video file
   dramatically by dropping detail, like creating a JPEG image
   from a RAW photo.
   E.g.: MP3, OGG Vorbis, AAC, WMA, AC3, RealAudio,etc

 • Lossless codecs lose very little information, if any, and the
   resulting files are quite large.
   E.g: Wave, AIFF, FLAC, ALAC
Classification of Codecs:
• Audio Codecs
• Video Codecs
• Text Codecs
Audio Codecs:
• Audio codecs (encoder-decoder) are programs that reduce this
  file size and can be split into two main categories - "lossy" and
  "lossless".

• A "lossy" codec (e.g. MP3, OGG Vorbis, AAC) uses knowledge of
  human hearing to try and discard as much of the original audio
  signal as possible, whilst attempting to make the audio sound
  as close as possible to the original. These codecs typically
  achieve a filesize of 10%-20% of the original.

• A "lossless" codec (e.g. FLAC) performs the same function as
  "winzip" - i.e. it compresses an audio file without discarding any
  of the information. These codecs typically achieve a filesize of
  50%-60% of the original filesize, but the audio playback will be
  bit-for-bit identical to the original file.
Video Codecs:
• Codecs are software that enable your devices (Camera, Editor,
  Player) to perform video encoding and/or decoding (think
  video compression and de-compression). Obviously the Blu-
  ray player needs only to decode a video stream. All these
  Codecs are based on standards (often de-facto company
  standards).

• All video streams are embedded in multimedia (video)
  containers. It is a common misconception that .AVI (Windows)
  and .MOV (Quicktime on Macs) already define what kind of
  video format it is. These containers include information which
  Codec is used in the file. If your system does not have the
  proper Codec installed the video won't play.
About Video Compression:

• Video compression is clearly our friend because without a lot of
  compression we would have a very hard time handling the massive
  data we get from a 1080p video stream.

• Think of two mega pixels per frame at 24, 30 or 60 frames per
  second (translates to 48, 60 or even 120 mega pixels data per
  second). On the flip side, video compression reduces the possible
  image quality we can get.

• Overall video compression is about the trade-off between:
• Data volume
  • Data storage needs
  • Data processing speed (in camera, on computer)
• Image quality
  • Detail
  • Color
Image Source: http://www.avnetwork.com/av-technology/0002/understanding-video-codecs/81041
Text Codecs
• A Text Codec is a function that transforms text into (when
  encoding) or out of (when decoding) another kind of
  representation. Usually, the most human-readable
  representation is said to be "decoded".

• "Encoders" will turn the (selected or whole) text into
  something less readable, "Decoders" try to revert those
  effects as good as possible.
• E.g.: ROT-13, Base64, URI Codecs, Unicode Codecs, Case
  Encoders, CMML, BiM
Codecs and Containers
 A container is what we typically associate with
  the file format. Containers "contain" the various
  components of a video: the stream of images,
  the sound, and anything else.

 For example, you could have multiple
  soundtracks and subtitles included in a video
  file, if the container format allows it. Example of
  popular containers are OGG, Matroska, AVI,
  MPEG.

 Codecs are ways of "coding" and "decoding"
  streams. Their job is typically to compress data
  (and decompress it when playing it back) so
  that you can store and transmit files with a
  smaller filesize.
                                                        Image Source:
                                                        http://www.pitivi.org/manual/codecs
                                                        containers.html

More Related Content

What's hot

What's hot (20)

Audio compression
Audio compressionAudio compression
Audio compression
 
Audio and Video Compression
Audio and Video CompressionAudio and Video Compression
Audio and Video Compression
 
Fundamentals of Data compression
Fundamentals of Data compressionFundamentals of Data compression
Fundamentals of Data compression
 
Video Compression Basics
Video Compression BasicsVideo Compression Basics
Video Compression Basics
 
lecture on data compression
lecture on data compressionlecture on data compression
lecture on data compression
 
Data compression
Data compressionData compression
Data compression
 
H261
H261H261
H261
 
Transform coding
Transform codingTransform coding
Transform coding
 
Multimedia image compression standards
Multimedia image compression standardsMultimedia image compression standards
Multimedia image compression standards
 
Video Compression Techniques
Video Compression TechniquesVideo Compression Techniques
Video Compression Techniques
 
Huffman Coding
Huffman CodingHuffman Coding
Huffman Coding
 
Compression
CompressionCompression
Compression
 
Multimedia compression
Multimedia compressionMultimedia compression
Multimedia compression
 
Jpeg and mpeg ppt
Jpeg and mpeg pptJpeg and mpeg ppt
Jpeg and mpeg ppt
 
Data Compression (Lossy and Lossless)
Data Compression (Lossy and Lossless)Data Compression (Lossy and Lossless)
Data Compression (Lossy and Lossless)
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 
Data compression
Data compressionData compression
Data compression
 
Data compression
Data  compressionData  compression
Data compression
 
MPEG/Audio Compression
MPEG/Audio CompressionMPEG/Audio Compression
MPEG/Audio Compression
 
Data compression
Data compressionData compression
Data compression
 

Similar to Codecs

what_is_a_codec_2010
what_is_a_codec_2010what_is_a_codec_2010
what_is_a_codec_2010Justin Giles
 
Video Transcoding Terms Explained
Video Transcoding Terms Explained Video Transcoding Terms Explained
Video Transcoding Terms Explained nerodude
 
Beginning html5 media, 2nd edition
Beginning html5 media, 2nd editionBeginning html5 media, 2nd edition
Beginning html5 media, 2nd editionser
 
IG2 Task 1 Work Sheet Elliot
IG2 Task 1 Work Sheet ElliotIG2 Task 1 Work Sheet Elliot
IG2 Task 1 Work Sheet ElliotElliotBlack
 
Video Workshop by Frederick Rodrigues
Video Workshop by Frederick RodriguesVideo Workshop by Frederick Rodrigues
Video Workshop by Frederick RodriguesDan MacKinlay
 
Preserving Audiovisual Materials (LIS 198-Digital Preservation)
Preserving Audiovisual Materials (LIS 198-Digital Preservation)Preserving Audiovisual Materials (LIS 198-Digital Preservation)
Preserving Audiovisual Materials (LIS 198-Digital Preservation)Roy Santos Necesario
 
IG2 Task 1 Work Sheet Elliot
IG2 Task 1 Work Sheet ElliotIG2 Task 1 Work Sheet Elliot
IG2 Task 1 Work Sheet ElliotElliotBlack
 
Sound recording glossary
Sound recording glossarySound recording glossary
Sound recording glossaryamybrockbank
 
Multimedia revision 2017
Multimedia revision 2017Multimedia revision 2017
Multimedia revision 2017greg robertson
 
Adam Crittenden Sound Glossary Original
Adam Crittenden Sound Glossary OriginalAdam Crittenden Sound Glossary Original
Adam Crittenden Sound Glossary OriginalAdam Crittenden
 
MARTINEZ KROMER RAWCooked
MARTINEZ KROMER RAWCookedMARTINEZ KROMER RAWCooked
MARTINEZ KROMER RAWCookedFIAT/IFTA
 
4 multimedia elements - video
4   multimedia elements - video4   multimedia elements - video
4 multimedia elements - videoKelly Bauer
 

Similar to Codecs (20)

what_is_a_codec_2010
what_is_a_codec_2010what_is_a_codec_2010
what_is_a_codec_2010
 
Media Encoding
Media Encoding Media Encoding
Media Encoding
 
Video Transcoding Terms Explained
Video Transcoding Terms Explained Video Transcoding Terms Explained
Video Transcoding Terms Explained
 
Beginning html5 media, 2nd edition
Beginning html5 media, 2nd editionBeginning html5 media, 2nd edition
Beginning html5 media, 2nd edition
 
Video formats
Video formatsVideo formats
Video formats
 
Slide
SlideSlide
Slide
 
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
 
IG2 Task 1 Work Sheet Elliot
IG2 Task 1 Work Sheet ElliotIG2 Task 1 Work Sheet Elliot
IG2 Task 1 Work Sheet Elliot
 
Video Workshop by Frederick Rodrigues
Video Workshop by Frederick RodriguesVideo Workshop by Frederick Rodrigues
Video Workshop by Frederick Rodrigues
 
Preserving Audiovisual Materials (LIS 198-Digital Preservation)
Preserving Audiovisual Materials (LIS 198-Digital Preservation)Preserving Audiovisual Materials (LIS 198-Digital Preservation)
Preserving Audiovisual Materials (LIS 198-Digital Preservation)
 
Thingy oldd
Thingy olddThingy oldd
Thingy oldd
 
IG2 Task 1 Work Sheet Elliot
IG2 Task 1 Work Sheet ElliotIG2 Task 1 Work Sheet Elliot
IG2 Task 1 Work Sheet Elliot
 
Chap62
Chap62Chap62
Chap62
 
Sound recording glossary
Sound recording glossarySound recording glossary
Sound recording glossary
 
Multimedia revision 2017
Multimedia revision 2017Multimedia revision 2017
Multimedia revision 2017
 
CHAPTER – 6 Video
CHAPTER – 6    VideoCHAPTER – 6    Video
CHAPTER – 6 Video
 
Adam Crittenden Sound Glossary Original
Adam Crittenden Sound Glossary OriginalAdam Crittenden Sound Glossary Original
Adam Crittenden Sound Glossary Original
 
audio-codec.docx
audio-codec.docxaudio-codec.docx
audio-codec.docx
 
MARTINEZ KROMER RAWCooked
MARTINEZ KROMER RAWCookedMARTINEZ KROMER RAWCooked
MARTINEZ KROMER RAWCooked
 
4 multimedia elements - video
4   multimedia elements - video4   multimedia elements - video
4 multimedia elements - video
 

Recently uploaded

9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 

Recently uploaded (20)

9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 

Codecs

  • 1. Codecs Presented By: 09BCE035 Arpan Patel
  • 2. What is a Codec ? • Codec stands for enCOder/DECoder or COmpressor/DECompressor • It is a software or hardware that compresses and decompresses audio and video data streams.
  • 3. Why do we need codecs? • The purpose of codecs is to reduce the size of digital audio samples and video frames in order to speed up transmission and save storage space. • Because video and music files are large, they become difficult to transfer across the Internet quickly. To help speed up downloads, mathematical "codecs" were built to encode ("shrink") a signal for transmission and then decode it for viewing or editing. Without codecs, downloads would take three to five times longer than they do now.
  • 4. Codec Types : Lossy or Lossless? • There are two types of codecs : lossy and lossless. • As the name implies, the lossy codecs shrink the video file dramatically by dropping detail, like creating a JPEG image from a RAW photo. E.g.: MP3, OGG Vorbis, AAC, WMA, AC3, RealAudio,etc • Lossless codecs lose very little information, if any, and the resulting files are quite large. E.g: Wave, AIFF, FLAC, ALAC
  • 5. Classification of Codecs: • Audio Codecs • Video Codecs • Text Codecs
  • 6. Audio Codecs: • Audio codecs (encoder-decoder) are programs that reduce this file size and can be split into two main categories - "lossy" and "lossless". • A "lossy" codec (e.g. MP3, OGG Vorbis, AAC) uses knowledge of human hearing to try and discard as much of the original audio signal as possible, whilst attempting to make the audio sound as close as possible to the original. These codecs typically achieve a filesize of 10%-20% of the original. • A "lossless" codec (e.g. FLAC) performs the same function as "winzip" - i.e. it compresses an audio file without discarding any of the information. These codecs typically achieve a filesize of 50%-60% of the original filesize, but the audio playback will be bit-for-bit identical to the original file.
  • 7. Video Codecs: • Codecs are software that enable your devices (Camera, Editor, Player) to perform video encoding and/or decoding (think video compression and de-compression). Obviously the Blu- ray player needs only to decode a video stream. All these Codecs are based on standards (often de-facto company standards). • All video streams are embedded in multimedia (video) containers. It is a common misconception that .AVI (Windows) and .MOV (Quicktime on Macs) already define what kind of video format it is. These containers include information which Codec is used in the file. If your system does not have the proper Codec installed the video won't play.
  • 8. About Video Compression: • Video compression is clearly our friend because without a lot of compression we would have a very hard time handling the massive data we get from a 1080p video stream. • Think of two mega pixels per frame at 24, 30 or 60 frames per second (translates to 48, 60 or even 120 mega pixels data per second). On the flip side, video compression reduces the possible image quality we can get. • Overall video compression is about the trade-off between: • Data volume • Data storage needs • Data processing speed (in camera, on computer) • Image quality • Detail • Color
  • 9.
  • 11. Text Codecs • A Text Codec is a function that transforms text into (when encoding) or out of (when decoding) another kind of representation. Usually, the most human-readable representation is said to be "decoded". • "Encoders" will turn the (selected or whole) text into something less readable, "Decoders" try to revert those effects as good as possible. • E.g.: ROT-13, Base64, URI Codecs, Unicode Codecs, Case Encoders, CMML, BiM
  • 12. Codecs and Containers  A container is what we typically associate with the file format. Containers "contain" the various components of a video: the stream of images, the sound, and anything else.  For example, you could have multiple soundtracks and subtitles included in a video file, if the container format allows it. Example of popular containers are OGG, Matroska, AVI, MPEG.  Codecs are ways of "coding" and "decoding" streams. Their job is typically to compress data (and decompress it when playing it back) so that you can store and transmit files with a smaller filesize. Image Source: http://www.pitivi.org/manual/codecs containers.html