Comparison of video encoders
   HOME

TheInfoList



OR:

Α
video codec A video codec is software or hardware that compresses and decompresses digital video. In the context of video compression, '' codec'' is a portmanteau of ''encoder'' and ''decoder'', while a device that only compresses is typically called an ...
is
software Software is a set of computer programs and associated documentation and data. This is in contrast to hardware, from which the system is built and which actually performs the work. At the lowest programming level, executable code consist ...
or a device that provides encoding and decoding for
digital video Digital video is an electronic representation of moving visual images (video) in the form of encoded digital data Digital data, in information theory and information systems, is information represented as a string of discrete symbols eac ...
, and which may or may not include the use of
video compression In information theory, data compression, source coding, or bit-rate reduction is the process of encoding information using fewer bits than the original representation. Any particular compression is either lossy or lossless. Lossless compressio ...
and/or decompression. Most codecs are typically implementations of video coding formats. The compression may employ
lossy data compression In information technology, lossy compression or irreversible compression is the class of data compression methods that uses inexact approximations and partial data discarding to represent the content. These techniques are used to reduce data siz ...
, so that quality-measurement issues become important. Shortly after the
compact disc The compact disc (CD) is a digital optical disc data storage format that was co-developed by Philips and Sony to store and play digital audio recordings. In August 1982, the first compact disc was manufactured. It was then released in O ...
became widely available as a digital-format replacement for analog audio, it became feasible to also store and use video in digital form. A variety of technologies soon emerged to do so. The primary goal for most methods of compressing video is to produce video that most closely approximates the fidelity of the original source, while simultaneously delivering the smallest file-size possible. However, there are also several other factors that can be used as a basis for comparison.


Introduction to comparison

The following characteristics are compared in
video codec A video codec is software or hardware that compresses and decompresses digital video. In the context of video compression, '' codec'' is a portmanteau of ''encoder'' and ''decoder'', while a device that only compresses is typically called an ...
s comparisons: * Video quality per bitrate (or range of
bitrate In telecommunications and computing, bit rate (bitrate or as a variable ''R'') is the number of bits that are conveyed or processed per unit of time. The bit rate is expressed in the unit bit per second (symbol: bit/s), often in conjunction ...
s). Commonly
video quality Video quality is a characteristic of a video passed through a video transmission or processing system that describes perceived video degradation (typically, compared to the original video). Video processing systems may introduce some amount of dis ...
is considered the main characteristic of codec comparisons. Video quality comparisons can be '' subjective'' or ''objective''. * Performance characteristics such as compression/decompression speed, supported profiles/options, supported resolutions, supported rate control strategies, etc. * General software characteristics for example: ** Manufacturer ** Supported OS (
Linux Linux ( or ) is a family of open-source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically packaged as a Linux distribution, whi ...
,
macOS macOS (; previously OS X and originally Mac OS X) is a Unix operating system developed and marketed by Apple Inc. since 2001. It is the primary operating system for Apple's Mac computers. Within the market of desktop and la ...
,
Windows Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for se ...
) ** Version number ** Date of release ** Type of license (commercial, free,
open source Open source is source code that is made freely available for possible modification and redistribution. Products include permission to use the source code, design documents, or content of the product. The open-source model is a decentralized so ...
) ** Supported interfaces (VfW, DirectShow, etc.) ** Price (value for money, volume discounts, etc.)


Video quality

The quality the codec can achieve is heavily based on the compression format the codec uses. A codec is not a format, and there may be multiple codecs that implement the same compression specification for example, MPEG-1 codecs typically do not achieve quality/size ratio comparable to codecs that implement the more modern H.264 specification. But quality/size ratio of output produced by different implementations of the same specification can also vary. Each compression specification defines various mechanisms by which raw video (in essence, a sequence of full-resolution uncompressed digital images) can be reduced in size, from simple bit compression (like Lempel-Ziv-Welch) to psycho-visual and motion summarization, and how the output is stored as a bit stream. So long as the encoder component of the codec adheres to the specification it can choose any combination of these methods to apply different parts of the content. The decoder component of a codec that also conforms to the specification recognises each of the mechanisms used, and thus interprets the compressed stream to render it back into raw video for display (although this will not be identical to the raw video input unless the compression was lossless). Each encoder implements the specification according to its own algorithms and parameters, which means that the compressed output of different codecs will vary, resulting in variations in quality and efficiency between them. Prior to comparing codec video-quality, it is important to understand that every codec can give a varying degree of quality for a given set of frames within a video sequence. Numerous factors play a role in this variability. First, all codecs have a bitrate control mechanism that is responsible for determining the bitrate and quality on a per-frame basis. A difference between
variable bitrate Variable bitrate (VBR) is a term used in telecommunications and computing that relates to the bitrate used in sound or video encoding. As opposed to constant bitrate (CBR), VBR files vary the amount of output data per time segment. VBR allows a ...
(VBR) and
constant bitrate Constant bitrate (CBR) is a term used in telecommunications, relating to the quality of service. Compare with variable bitrate. When referring to codecs, constant bit rate encoding means that the rate at which a codec's output data should be ...
(CBR) creates a trade-off between a consistent quality over all frames, on the one hand, and a more constant bitrate, which is required for some applications, on the other. Second, some codecs differentiate between different types of frames, such as
key frame In animation and filmmaking, a key frame (or keyframe) is a drawing or shot that defines the starting and ending points of a smooth transition. These are called ''frames'' because their position in time is measured in frames on a strip of fi ...
s and non-key frames, differing in their importance to overall visual quality and the extent to which they can be compressed. Third, quality depends on prefiltrations, which are included on all present-day codecs. Other factors may also come into play. For a sufficiently long clip, it is possible to select sequences that have suffered little from the compression, and sequences that have suffered heavily, especially if CBR has been used, whereby the quality between frames can vary highly due to different amounts of compression needed to achieve a constant bitrate. So, in a given long clip, such as a full-length movie, any two codecs may perform quite differently on a particular sequence from the clip, while the codecs may be approximately equal (or the situation reversed) in quality over a wider sequence of frames. Press-releases and amateur forums may sometimes select sequences known to favor a particular codec or style of rate-control in reviews.


Objective video quality

Objective video evaluation techniques are mathematical models that seek to predict human judgments of picture quality, as often exemplified by the results of subjective quality assessment experiments. They are based on criteria and metrics that can be measured objectively and automatically evaluated by a computer program. Objective methods are classified based on the availability of an original pristine video signal, which is considered to be of high quality (generally not compressed). Therefore, they can be classified as: * Full reference methods (FR), where the whole original video signal is available * Reduced reference methods (RR), where only partial information of the original video is available, and * No-reference methods (NR), where the original video is not available at all.


Subjective video quality

This is concerned with how video is perceived by a viewer, and designates their opinion on a particular video sequence. Subjective video quality tests are quite expensive with regard to time (preparation and running) and human resources. There are many ways of showing video sequences to experts and recording their opinions. A few of them have been standardized, mainly in ITU-R Recommendation BT.500-13 and ITU-T Recommendation P.910. The reason for measuring subjective video quality is the same as for measuring the
mean opinion score Mean opinion score (MOS) is a measure used in the domain of Quality of Experience and telecommunications engineering, representing overall quality of a stimulus or system. It is the arithmetic mean over all individual "values on a predefined scale t ...
for audio. Opinions of experts can be averaged and the average mark stated as, or accompanied by, a given confidence interval. Additional procedures can be used for averaging. For example, experts whose opinions are considered unstable (such as if their correlation with average opinion is found to be low) may have their opinions rejected. In the case of
video codec A video codec is software or hardware that compresses and decompresses digital video. In the context of video compression, '' codec'' is a portmanteau of ''encoder'' and ''decoder'', while a device that only compresses is typically called an ...
s, this is a very common situation. When codecs with similar objective results show results with different subjective results, the main reasons can be: * Pre- and postfilters are widely used in codecs. Codecs often use prefilters such as
video denoising Video denoising is the process of removing noise from a video signal. Video denoising methods can be divided into: * Spatial video denoising methods, where image noise reduction is applied to each frame individually. * Temporal video denoising meth ...
, deflicking, deshaking, etc. Denoising and deflicking normally maintain PSNR value while increasing visual quality (the best slow denoising filters also increase PSNR on medium and high bitrates). Deshaking greatly decreases PSNR, but increases visual quality. Postfilters show similar characteristics deblocking and deringing maintain PSNR, but increase quality; graining (suggested in
H.264 Advanced Video Coding (AVC), also referred to as H.264 or MPEG-4 Part 10, is a video compression standard based on block-oriented, motion-compensated coding. It is by far the most commonly used format for the recording, compression, and distr ...
) essentially increases video quality, especially on big plasma screens, but decreases PSNR. All filters increase compression/decompression time, so they enhance visual quality but decrease the speed of coding and decoding. * Motion estimation (ME) search strategy can also cause different visual quality for the same PSNR. So-called ''true motion'' search commonly will not reach minimum
sum of absolute differences In digital image processing, the sum of absolute differences (SAD) is a measure of the similarity between image blocks. It is calculated by taking the absolute difference between each pixel in the original block and the corresponding pixel in the ...
(SAD) values in codec ME, but may result in better visual quality. Such methods also require more compression time. * Rate control strategy. VBR commonly cause better visual quality marks than CBR for the same average PSNR values for sequences. It is difficult to use long sequences for subjective testing. Commonly, three or four ten-second sequences are used, while full movies are used for objective metrics. Sequence selection is important those sequences that are similar to the ones used by developers to tune their codecs are more competitive.


Performance comparison


Speed comparison

Number of
frames per second A frame is often a structural system that supports other components of a physical construction and/or steel frame that limits the construction's extent. Frame and FRAME may also refer to: Physical objects In building construction *Framing (con ...
(''FPS'') commonly used for compression/decompression speed measurement. The following issues should be considered when estimating probable codec performance differences: * Decompression (sometimes compression) frame time uniformity Big differences in this value can cause annoyingly jerky playback. *
SIMD Single instruction, multiple data (SIMD) is a type of parallel processing in Flynn's taxonomy. SIMD can be internal (part of the hardware design) and it can be directly accessible through an instruction set architecture (ISA), but it shoul ...
support by processor and codec E.g.,
MMX MMX may refer to: * 2010, in Roman numerals Science and technology * MMX (instruction set), a single-instruction, multiple-data instruction set designed by Intel * MMX Mineração, a Brazilian mining company * Martian Moons eXploration, a Japane ...
, SSE,
SSE2 SSE2 (Streaming SIMD Extensions 2) is one of the Intel SIMD (Single Instruction, Multiple Data) processor supplementary instruction sets first introduced by Intel with the initial version of the Pentium 4 in 2000. It extends the earlier SSE i ...
, each of which change CPU performance on some kinds of tasks (often including those with which codecs are concerned). * Multi-threading support by processor and codec Sometimes turning on
Hyper-threading Hyper-threading (officially called Hyper-Threading Technology or HT Technology and abbreviated as HTT or HT) is Intel's proprietary simultaneous multithreading (SMT) implementation used to improve parallelization of computations (doing multipl ...
support (if available on a particular CPU) causes codec speed to decrease. *
RAM Ram, ram, or RAM may refer to: Animals * A male sheep * Ram cichlid, a freshwater tropical fish People * Ram (given name) * Ram (surname) * Ram (director) (Ramsubramaniam), an Indian Tamil film director * RAM (musician) (born 1974), Dutch * ...
speed generally important for most codec implementations * Processor cache size low values sometimes cause serious speed degradation, e.g. for CPUs with low cache such as several of the Intel
Celeron Celeron is Intel's brand name for low-end IA-32 and x86-64 computer microprocessor models targeted at low-cost personal computers. Celeron processors are compatible with IA-32 software. They typically offer less performance per clock speed co ...
series. *
GPU A graphics processing unit (GPU) is a specialized electronic circuit designed to manipulate and alter memory to accelerate the creation of images in a frame buffer intended for output to a display device. GPUs are used in embedded systems, mobi ...
usage by codec some codecs can drastically increase their performance by taking advantage of GPU resources. So, for example, codec A (being optimized for memory usage i.e., uses less memory) may, on modern computers (which are typically not memory-limited), give slower performance than codec B. Meanwhile, the same pair of codecs may give opposite results if running on an older computer with reduced memory (or cache) resources.


Profiles support

Modern standards define a wide range of features and require very substantial software or hardware efforts and resources for their implementation. Only selected ''profiles'' of a standard are typically supported in any particular product. (This is very common for H.264 implementations for example.) The H.264 standard includes the following seven sets of capabilities, which are referred to as ''profiles'', targeting specific classes of applications: * Baseline Profile (BP): Primarily for lower-cost applications with limited computing resources, this profile is used widely in videoconferencing and mobile applications. * Main Profile (MP): Originally intended as the mainstream consumer profile for broadcast and storage applications, the importance of this profile faded when the High profile (HiP) was developed for those applications. * Extended Profile (XP): Intended as the streaming video profile, this profile has relatively high compression capability and some extra tricks for robustness to data losses and server stream switching. * High Profile (HiP): The primary profile for broadcast and disc storage applications, particularly for high-definition television applications. (This is the profile adopted into
HD DVD HD DVD (short for High Definition Digital Versatile Disc) is an obsolete high-density optical disc format for storing data and playback of high-definition video. Supported principally by Toshiba, HD DVD was envisioned to be the successor to the ...
and
Blu-ray The Blu-ray Disc (BD), often known simply as Blu-ray, is a digital optical disc data storage format. It was invented and developed in 2005 and released on June 20, 2006 worldwide. It is designed to supersede the DVD format, and capable of st ...
Disc, for example.) * High 10 Profile (Hi10P): Going beyond today's mainstream consumer product capabilities, this profile builds on top of the High Profile, adding support for up to 10 bits per sample of decoded picture precision. * High 4:2:2 Profile (Hi422P): Primarily targeting professional applications that use interlaced video, this profile builds on top of the High 10 Profile, adding support for the 4:2:2 chroma sampling format while using up to 10 bits per sample of decoded picture precision. * High 4:4:4 Predictive Profile (Hi444PP): This profile builds on top of the High 4:2:2 Profile, supporting up to 4:4:4 chroma sampling, up to 14 bits per sample, and additionally supporting efficient lossless region coding and the coding of each picture as three separate color planes. * Multiview High Profile: This profile supports two or more views using both inter-picture (temporal) and MVC inter-view prediction, but does not support field pictures and macroblock-adaptive frame-field coding. The standard also contains four additional ''all-Intra profiles'', which are defined as simple subsets of other corresponding profiles. These are mostly for professional (e.g., camera and editing system) applications: * High 10 Intra Profile: The High 10 Profile constrained to all-Intra use. * High 4:2:2 Intra Profile: The High 4:2:2 Profile constrained to all-Intra use. * High 4:4:4 Intra Profile: The High 4:4:4 Profile constrained to all-Intra use. * CAVLC 4:4:4 Intra Profile: The High 4:4:4 Profile constrained to all-Intra use and to
CAVLC Context-adaptive variable-length coding (CAVLC) is a form of entropy coding used in H.264/MPEG-4 AVC video encoding. It is an inherently lossless compression technique, like almost all entropy-coders. In H.264/MPEG-4 AVC, it is used to encode re ...
entropy coding (i.e., not supporting
CABAC Context-adaptive binary arithmetic coding (CABAC) is a form of entropy encoding used in the H.264/MPEG-4 AVC and High Efficiency Video Coding (HEVC) standards. It is a lossless compression technique, although the video coding standards in which it ...
). Moreover, the standard now also contains three Scalable Video Coding profiles. * Scalable Baseline Profile: A scalable extension of the Baseline profile. * Scalable High Profile: A scalable extension of the High profile. * Scalable High Intra Profile: The Scalable High Profile constrained to all-Intra use. An accurate comparison of codecs must take the profile variations within each codec into account. ''See also MPEG-2 Profiles and Levels.''


Supported rate control strategies

Videocodecs' rate control strategies can be classified as: *
Variable bitrate Variable bitrate (VBR) is a term used in telecommunications and computing that relates to the bitrate used in sound or video encoding. As opposed to constant bitrate (CBR), VBR files vary the amount of output data per time segment. VBR allows a ...
(''VBR'') and *
Constant bitrate Constant bitrate (CBR) is a term used in telecommunications, relating to the quality of service. Compare with variable bitrate. When referring to codecs, constant bit rate encoding means that the rate at which a codec's output data should be ...
(''CBR''). Variable bitrate (VBR) is a strategy to maximize the visual video quality and minimize the bitrate. On fast-motion scenes, a variable bitrate uses more bits than it does on slow-motion scenes of similar duration, yet achieves a consistent visual quality. For real-time and non-buffered video streaming when the available bandwidth is fixed e.g. in videoconferencing delivered on channels of fixed bandwidth a constant bitrate (CBR) must be used. CBR is commonly used for videoconferences, satellite and cable broadcasting. VBR is commonly used for video CD/DVD creation and video in programs. Bit rate control is suited to video streaming. For offline storage and viewing, it is typically preferable to encode at constant
quality Quality may refer to: Concepts *Quality (business), the ''non-inferiority'' or ''superiority'' of something *Quality (philosophy), an attribute or a property *Quality (physics), in response theory * Energy quality, used in various science discipl ...
(usually defined by quantization) rather than using bit rate control.


Software characteristics


Codecs list

The Xiph.Org Foundation has negotiated an irrevocable free license to Theora and other VP3-derived codecs for everyone, for any purpose.Theora.org FAQ
isn't VP3 a patented technology?
/ref> DivX Plus is also known as DivX 8. The latest stable version for Mac is DivX 7 for Mac.


Native operating system support

Note that operating system support does not mean whether video encoded with the codec can be played back on the particular operating system for example, video encoded with the DivX codec is playable on Unix-like systems using free MPEG-4 ASP decoders (FFmpeg MPEG-4 or Xvid), but the DivX codec (which is a software product) is only available for Windows and macOS.


Technical details

Theora streams with different frame rates can be chained in the same file, but each stream has a fixed frame rate.


Freely available codecs comparisons

List of freely available comparisons and their content description:


See also

*
Comparison of video player software The following comparison of video players compares general and technical information for notable software media player programs. For the purpose of this comparison, ''video players'' are defined as any media player which can play video, even ...
*
List of codecs The following is a list of compression formats and related codecs. Audio compression formats Non-compression * Linear pulse-code modulation (LPCM, generally only described as PCM) is the format for uncompressed audio in media files and it is a ...
**
List of open-source codecs This is a listing of open-source codecs—that is, open-source software implementations of audio or video coding formats. Many of the codecs listed implement media formats that are restricted by patents and are hence not open formats. For exampl ...
*
Structural similarity The structural similarity index measure (SSIM) is a method for predicting the perceived quality of digital television and cinematic pictures, as well as other kinds of digital images and videos. SSIM is used for measuring the similarity between tw ...
* MOVIE Index *
Comparison of audio coding formats The following tables compare general and technical information for a variety of audio coding formats. For listening tests comparing the perceived audio quality of audio formats and codecs, see the article Codec listening test. General informati ...
*
Comparison of video container formats These tables compare features of multimedia container formats, most often used for storing or streaming digital video or digital audio content. To see which multimedia players support which container format, look at comparison of media players. ...
*
Comparison of video editing software General information This table gives basic general information about the different editors: Active Discontinued / inactive Definition * professional: used for full length Hollywood movies; * professional (small): mainly used for paid ...


Notes and references


External links


Laboratory for Image and Video Engineering (LIVE)


{{DEFAULTSORT:Comparison Of Video Codecs
Video Codecs The following is a list of compression formats and related codecs. Audio compression formats Non-compression * Linear pulse-code modulation (LPCM, generally only described as PCM) is the format for uncompressed audio in media files and it is al ...
Video codecs The following is a list of compression formats and related codecs. Audio compression formats Non-compression * Linear pulse-code modulation (LPCM, generally only described as PCM) is the format for uncompressed audio in media files and it is al ...