User Tools

Site Tools


general:common_myths

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
general:common_myths [2010/04/11 23:56]
j.m created
general:common_myths [2012/03/14 23:28]
j.m [Software vs. format, format vs. codec]
Line 22: Line 22:
 ===== Software vs. format, format vs. codec ===== ===== Software vs. format, format vs. codec =====
  
-Contrary to popular ​myth, codec is not the same thing as format. ​Audio or video does not have to be decoded with the same codec it was encoded ​with. For example, when you encode an MP3 file with the LAME codec, it is not "LAME file""LAME format",​ "LAME audio" or just "​LAME"​ – you don't encode "to LAME". It is an MP3 file and it can be decoded with other MP3 decoders, ​too.+Contrary to popular ​mythscodec is not the same thing as format. ​A compression format is //a way// audio or video data are encoded, ​which is described in its specification (if it is standardized, it can be called a standard). An audio or video codec (a codec means en**co**der/​**dec**oder) is a software or hardware //tool// that encodes or decodes audio or video data. Tools used for encoding are called encoders, tools used for decoding are called ​decoders. Software codecsencoders and decoders are typically implemented as libraries
  
-However, the common practice in digital video is using these two terms interchangeably,​ which is caused by years of industry obfuscations,​ greedy proprietarism ​(pretending that their codec is a format is a common business model for codec vendors and a significant source of their incomeas it ties the customers to their products), intentional lying in various magazines, websites etc. (in order to make it "​easy"​ for the readers who could be "​confused"​ by correct terms) and nonsensical use of codec [[http://​en.wikipedia.org/​wiki/​FourCC|FourCC]] in AVI (that is, codecs have their own FourCC in AVI files, so if the codec uses a common standard format, users are supposed to install multiple decoders for the same format). Historically,​ when a company released their own proprietary codec, it was automatically supposed to be the only existing codec for that proprietary format.+==== Examples ​of compression formats ​(standardsspecifiations====
  
-But there are standards such as MPEG-1MPEG-2 and MPEG-4These are specifications and developers can develop software or hardware implementations that encode or decode audio and video according to the specification. There can be multiple codecs, made by different people, using the same compression format such as MPEG-2 ​(used e.g. on DVDs) or MPEG-4 ​ASP. Codec is a software (or hardwareimplementation that encodes/​decodes (hence the term "​codec"​) data to/from some format which can be compatible with other codecs that follow the same specification. Software is not a format.+  * MP3 
 +  * Vorbis 
 +  * MPEG-4 Part 2ASP 
 +  * H.264 (MPEG-4 ​Part 10, AVC) 
 +  * VP8
  
 +None of the items listed above is a codec, even though all of them are often erroneously referred to as such. A codec is a tool that actually does something (encodes/​decodes,​ as the term encoder/​decoder suggests), while a specification does not do (encode or decode) anything. It only describes how to make tools that do the actual work.
 +
 +==== Examples of codecs ====
 +
 +  * LAME
 +  * libvorbis
 +  * libavcodec MPEG-4
 +  * Xvid
 +  * DivX Codec
 +  * libvpx
 +
 +None of the items listed above is a format, even though some of them are often erroneously referred to as such (see below). A software tool is not a specification. It implements the format described in the specification.
 +
 +==== A single standard, multiple implementations ====
 +
 +This all means that audio or video does not have to be decoded with the same codec it was encoded with. For example, when you encode an MP3 file with the LAME codec, it is not a "LAME file", "LAME format",​ "LAME audio" or just "​LAME"​ – you don't encode "to LAME". It is an MP3 file and it can be decoded with other MP3 decoders, too.
 +
 +However, the common practice in digital video is using these two terms interchangeably,​ which is caused by years of industry obfuscations,​ greedy proprietarism (pretending that their codec is a format is a common business model for codec vendors and a significant source of their income, as it ties the customers to their products), intentional lying in various magazines, websites etc. (in order to make it "​easy"​ for the readers who could be "​confused"​ by correct terms), and the resulting ubiquitous ignorance and lack of knowledge. The nonsensical use of codec [[http://​en.wikipedia.org/​wiki/​FourCC|FourCC]] in AVI files was a major factor in this massive confusion (video codecs have their own four-character identification in AVI files that is used by the player software for choosing a video decoder, so if the encoder uses a common standard format, users are supposed to install multiple decoders for the same format). Historically,​ when a company released their own proprietary codec, it was automatically supposed to be the only existing codec for that proprietary format.
 +
 +But there are standards such as MPEG-1, MPEG-2 and MPEG-4. These are specifications. Developers can develop software or hardware implementations that encode or decode audio and video according to the specification. There can be multiple codecs, made by different people, using the same compression format such as MPEG-2 (used e.g. on DVDs) or MPEG-4 ASP. Video encoded with one of them can be decoded with another one, if they use the same compression format, which means they are compatible. So the essential thing for describing a video file is its format, not which codec was used for encoding.
 ==== DivX ==== ==== DivX ====
  
Line 35: Line 59:
  
   * A company (DivX, Inc.)   * A company (DivX, Inc.)
-  * A brand name of commercial software products made by DivX, Inc. (e.g. the DivX Player or DivX Pro Codec). +  * A brand name of commercial software products made by DivX, Inc. (e.g. the DivX Plus Player or DivX Pro Codec). 
-  * An MPEG-4 ASP codec – the DivX Codec (in several variants such as the DivX Pro Codec) is a software product made by DivX, Inc.+  * An MPEG-4 ASP codec(nbsp)– the DivX Codec (in several variants such as the DivX Pro Codec) is a software product made by DivX, Inc.
   * Trademark of DivX, Inc. (that is, you cannot use the DivX name in the names of your products etc.)   * Trademark of DivX, Inc. (that is, you cannot use the DivX name in the names of your products etc.)
  
Line 45: Line 69:
   * Open-source or free software.   * Open-source or free software.
  
-The DivX Codec is a commercial piece of software that encodes and decodes MPEG-4 ASP video. Note that software is not a format – "​supporting DivX" does not mean "​supporting video encoded with the DivX codec",​ it means supporting the software product made by DivX, Inc., for example by allowing a video editor to use the DivX codec for encoding and/or decoding.+The DivX Codec is a commercial piece of software that encodes and decodes MPEG-4 ASP video (newer versions also support MPEG-4(nbsp)AVC,​ alias H.264). Note that software is not a format – "​supporting DivX" does not mean "​supporting video encoded with the DivX codec",​ it means supporting the software product made by DivX, Inc., for example by allowing a video editor to use the DivX codec for encoding and/or decoding.
  
 DivX is currently available for Windows and Mac OS. Avidemux is multiplatform,​ developed primarily on Linux and all codecs it uses are open-source and free. DivX is not available for Linux anymore (an "​unofficial"​ version for developers has been released in 2006) and it's not free (as in Free Software). The older Linux version also did not work properly, with no reaction from the DivX company for 3 years. That's why Avidemux does not support it. DivX is currently available for Windows and Mac OS. Avidemux is multiplatform,​ developed primarily on Linux and all codecs it uses are open-source and free. DivX is not available for Linux anymore (an "​unofficial"​ version for developers has been released in 2006) and it's not free (as in Free Software). The older Linux version also did not work properly, with no reaction from the DivX company for 3 years. That's why Avidemux does not support it.
  
-However, as DivX just uses MPEG-4 ASP video compression,​ it is compatible with other MPEG-4 ASP codecs. The two open-source and free MPEG-4 ASP codecs used by Avidemux are FFmpeg MPEG-4 (built-in, used for decoding and encoding) and Xvid (external, optionally used for encoding). Both are good, feature rich and compatible with DivX to a great degree (although not 100%), thanks to the MPEG-4 standard.+However, as DivX just uses MPEG-4 ASP video compression,​ it is compatible with other MPEG-4 ASP codecs. The two open-source and free MPEG-4 ASP codecs used by Avidemux are FFmpeg MPEG-4 (built-in, used for decoding and encoding) and Xvid (external, optionally used for encoding). Both are good, feature rich and compatible with DivX, thanks to the MPEG-4 standard.
  
 **Summary:​** **Summary:​**
general/common_myths.txt · Last modified: 2012/11/11 08:51 (external edit)