Каталог статей
Главная » Статьи » Мои статьи |
Comparison of video codecsFrom Wikipedia, the free encyclopedia A video codec is software or a device that provides encoding and decoding which may or may not include the use of video compression and/or decompression for digital video. The compression may employ lossy data compression, so quality measurement issues become important. Shortly after the compact disc 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 and simultaneously deliver the smallest file size possible. However, there are also several other factors that can be used as a basis for comparison.
Introduction to comparisonThe following characteristics are compared in video codecs comparisons:
Video qualityThe quality the codec can achieve is heavily based on the compression format the codec uses. A codec is not a format, and there can 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 vary, too. 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 which is responsible for determining the bitrate and quality on a per-frame basis. A difference between variable bit rate (VBR) and constant bit rate (CBR) creates a trade-off between a consistent quality over all frames, and a more constant bitrate, which is required for some applications. Second, some codecs differentiate between different types of frames such as key frames 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, that is included on all present-day codecs. Other factors can also come into play. For a sufficiently long clip, it is possible to select sequences which have suffered little from the compression and sequences which have suffered heavily, especially if CBR was used, in which the quality between frames can vary highly due to different amounts of compression needed to achieve a constant bitrate. So, in any one 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 sometimes select sequences known to favor a particular codec or style of rate control in reviews. Objective video qualityMain article: video quality
Objective video evaluation techniques are mathematical models that approximate results of subjective quality assessment, but 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 the original video signal, which is considered to be of high quality (generally not compressed). Therefore, they can be classified as:
The main FR metrics are:
Some other metrics have been suggested by Video Quality Experts Group (VQEG), private companies, and universities, but are not widespread. The main comparison method is the so-called RD-curve (rate/distortion chart), where a metric value is plotted against the Y-axis and the bitrate against the X-axis. Some example NR metrics are:
Subjective video qualityMain article: Subjective video quality
This is concerned with how video is perceived by a viewer and designates his or her opinion on a particular video sequence. Subjective video quality tests are quite expensive in terms of time (preparation and running) and human resources. There is an enormous number of ways of showing video sequences to experts and of recording their opinions. A few of them have been standardized. They are thoroughly described in ITU-R recommendation BT.500. Following subjective video quality comparison methods are used:
The reason for measuring subjective video quality is the same as for measuring the Mean Opinion Score for audio. Opinions of experts can be averaged; average mark is usually given with confidence interval. Additional procedures can be used for averaging, for example experts who give unstable results can be rejected (for instance, if their correlation with average opinion is small). In case of video codecs, this is a very common situation. When codecs with similar objective results show results with different subjective results, the main reasons can be:
It is difficult to use long sequences for subjective testing. Commonly, three or four ten-second sequences are used, compared with full movies 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 comparisonSpeed comparisonMain article: Frame rate
Number of frames per second (FPS) commonly used for compression/decompression speed measurement. The following issues should be considered when estimating probable codec performance differences:
So, for example, codec A (being optimized for memory usage, i.e. uses less memory) may give slower performance on modern computers (which are typically not memory limited) than codec B. The same pair of codecs may give opposite results if running on an older computer with reduced memory (or cache) resources. Profiles supportMain article: H.264
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 very common situation 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:
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:
Moreover, the standard now also contains three Scalable Video Coding profiles.
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 strategiesMain article: Rate distortion theory
Videocodecs rate control strategies can be classified as:
Variable bit rate (VBR) is a strategy to maximize the visual video quality and minimize the bit rate. On fast motion scenes, a variable bit rate 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 bit rate (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. | ||
Категория: Мои статьи | Добавил: Контроллер (09.09.2012) | ||
Просмотров: 854 |
Всего комментариев: 0 | |