SlideShare a Scribd company logo
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

Audio compression 1
Audio compression 1Audio compression 1
Audio compression 1
Rajat Kumar
 
Commonly Used Image File Formats
Commonly Used Image File FormatsCommonly Used Image File Formats
Commonly Used Image File Formats
Fatih Özlü
 
Video signal-ppt
Video signal-pptVideo signal-ppt
Video signal-ppt
Deepa K C
 
Chapter 5 - Data Compression
Chapter 5 - Data CompressionChapter 5 - Data Compression
Chapter 5 - Data Compression
Pratik Pradhan
 
Image formats
Image formatsImage formats
Image formats
IET DAVV Indore
 
Audio compression
Audio compressionAudio compression
Audio compression
Miled Othmen
 
Digital Audio in Multimedia
Digital Audio in MultimediaDigital Audio in Multimedia
Digital Audio in Multimedia
lalithambiga kamaraj
 
Chapter 3 - Multimedia System Design
Chapter 3 - Multimedia System DesignChapter 3 - Multimedia System Design
Chapter 3 - Multimedia System Design
Pratik Pradhan
 
data compression technique
data compression techniquedata compression technique
data compression technique
CHINMOY PAUL
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
lavanya marichamy
 
Multimedia tools (sound)
Multimedia tools (sound)Multimedia tools (sound)
Multimedia tools (sound)dhruv patel
 
Multimedia System & Design Ch 5 video
Multimedia System & Design Ch 5 videoMultimedia System & Design Ch 5 video
Multimedia System & Design Ch 5 video
Badar Waseer
 
Multimedia networking
Multimedia networkingMultimedia networking
Multimedia networking
Dr. Hamdan Al-Sabri
 
Digital Audio
Digital AudioDigital Audio
Digital Audio
kavitha muneeshwaran
 
lossy compression JPEG
lossy compression JPEGlossy compression JPEG
lossy compression JPEG
Mahmoud Hikmet
 
File formats and its types
File formats and its typesFile formats and its types
File formats and its typesAnu Garg
 
Audio and Video Compression
Audio and Video CompressionAudio and Video Compression
Audio and Video Compression
Er. Ashish Pandey
 

What's hot (20)

Audio compression 1
Audio compression 1Audio compression 1
Audio compression 1
 
Commonly Used Image File Formats
Commonly Used Image File FormatsCommonly Used Image File Formats
Commonly Used Image File Formats
 
Video signal-ppt
Video signal-pptVideo signal-ppt
Video signal-ppt
 
Chapter 5 - Data Compression
Chapter 5 - Data CompressionChapter 5 - Data Compression
Chapter 5 - Data Compression
 
Image Files Formats
Image Files FormatsImage Files Formats
Image Files Formats
 
Image formats
Image formatsImage formats
Image formats
 
Audio compression
Audio compressionAudio compression
Audio compression
 
Digital Audio in Multimedia
Digital Audio in MultimediaDigital Audio in Multimedia
Digital Audio in Multimedia
 
Chapter 3 - Multimedia System Design
Chapter 3 - Multimedia System DesignChapter 3 - Multimedia System Design
Chapter 3 - Multimedia System Design
 
data compression technique
data compression techniquedata compression technique
data compression technique
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
 
Multimedia tools (sound)
Multimedia tools (sound)Multimedia tools (sound)
Multimedia tools (sound)
 
Multimedia System & Design Ch 5 video
Multimedia System & Design Ch 5 videoMultimedia System & Design Ch 5 video
Multimedia System & Design Ch 5 video
 
Multimedia networking
Multimedia networkingMultimedia networking
Multimedia networking
 
YUV, Y CB CR and Subsampling
YUV, Y CB CR and SubsamplingYUV, Y CB CR and Subsampling
YUV, Y CB CR and Subsampling
 
Digital Audio
Digital AudioDigital Audio
Digital Audio
 
lossy compression JPEG
lossy compression JPEGlossy compression JPEG
lossy compression JPEG
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
File formats and its types
File formats and its typesFile formats and its types
File formats and its types
 
Audio and Video Compression
Audio and Video CompressionAudio and Video Compression
Audio and Video 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 Compression
Video CompressionVideo Compression
Video Compression
Shreyash Patel
 
Media Encoding
Media Encoding Media Encoding
Media Encoding
Phillip Doyle
 
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 edition
ser
 
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
International Journal of Science and Research (IJSR)
 
IG2 Task 1 Work Sheet Elliot
IG2 Task 1 Work Sheet ElliotIG2 Task 1 Work Sheet Elliot
IG2 Task 1 Work Sheet Elliot
ElliotBlack
 
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 Elliot
ElliotBlack
 
Sound recording glossary
Sound recording glossarySound recording glossary
Sound recording glossaryamybrockbank
 
Multimedia revision 2017
Multimedia revision 2017Multimedia revision 2017
Multimedia revision 2017
greg robertson
 
CHAPTER – 6 Video
CHAPTER – 6    VideoCHAPTER – 6    Video
CHAPTER – 6 Video
Amir Ibrahim Tahir
 
Adam Crittenden Sound Glossary Original
Adam Crittenden Sound Glossary OriginalAdam Crittenden Sound Glossary Original
Adam Crittenden Sound Glossary Original
Adam Crittenden
 
audio-codec.docx
audio-codec.docxaudio-codec.docx
audio-codec.docx
ssuser1eca7d
 
MARTINEZ KROMER RAWCooked
MARTINEZ KROMER RAWCookedMARTINEZ KROMER RAWCooked
MARTINEZ KROMER RAWCooked
FIAT/IFTA
 

Similar to Codecs (20)

what_is_a_codec_2010
what_is_a_codec_2010what_is_a_codec_2010
what_is_a_codec_2010
 
Video Compression
Video CompressionVideo Compression
Video Compression
 
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)
 
IG2 Task 1 Work Sheet Elliot
IG2 Task 1 Work Sheet ElliotIG2 Task 1 Work Sheet Elliot
IG2 Task 1 Work Sheet Elliot
 
Thingy oldd
Thingy olddThingy oldd
Thingy oldd
 
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
 

Recently uploaded

Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 

Recently uploaded (20)

Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 

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