Microsoft Video 1 or MS-CRAM
is an early
lossy
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 size ...
video compression and decompression algorithm (
codec
A codec is a device or computer program that encodes or decodes a data stream or signal. ''Codec'' is a portmanteau of coder/decoder.
In electronic communications, an endec is a device that acts as both an encoder and a decoder on a signal or ...
) that was released with version 1.0 of
Microsoft's
Microsoft Corporation is an American multinational corporation, multinational technology company, technology corporation producing Software, computer software, consumer electronics, personal computers, and related services headquartered at th ...
Video for Windows
Video for Windows was a suite of video playing and editing software introduced by Microsoft in 1992. A runtime version for viewing videos only was made available as a free add-on to Windows 3.1, which then became an integral component of Windows ...
in November 1992. It is based on MotiVE, a
vector quantization
Vector quantization (VQ) is a classical quantization technique from signal processing that allows the modeling of probability density functions by the distribution of prototype vectors. It was originally used for data compression. It works by di ...
codec which Microsoft licensed from
Media Vision
Media Vision Technology, Inc., was an American electronics manufacturer of primarily computer sound cards and CD-ROM kits, operating from 1990 to approximately 1995 in Fremont, California. Media Vision was widely known for its Pro AudioSpectrum ...
. In 1993, Media Vision marketed the Pro Movie Spectrum, an ISA board that captured video in both raw and MSV1 formats (the MSV1 processing was done in hardware on the board).
Compression algorithm
Microsoft Video 1 operates either in an
8-bit palettized color space or in a
15-bit RGB color space.
Each frame is split into 4×4 pixel blocks.
[ Each 4×4 pixel block can be coded in one of three modes: skip, 2-color or 8-color.][ In skip mode, the content from the previous frame is copied to the current frame in a ]conditional replenishment
Conditional (if then) may refer to:
* Causal conditional, if X then Y, where X is a cause of Y
*Conditional probability, the probability of an event A given that another event B has occurred
* Conditional proof, in logic: a proof that asserts a ...
fashion.[ In 2-color mode, two colors per 4×4 block are transmitted, and 1 bit per pixel is used to select between the two colors.][ In 8-color mode, the same scheme applies with 2 colors per 2×2 block.][ This can be interpreted as a 2-color palette which is locally adapted on either a 4×4 block basis or a 2×2 block basis. Interpreted as ]vector quantization
Vector quantization (VQ) is a classical quantization technique from signal processing that allows the modeling of probability density functions by the distribution of prototype vectors. It was originally used for data compression. It works by di ...
, vectors with components red, green, and blue are quantized using a forward adaptive codebook with two entries.
Use in NetShow Encoder
The codec was available in Microsoft NetShow
NetShow was Microsoft's original framework for Internet network broadcasting, intended to compete with RealNetworks RealMedia & Vivo (''acquired in 1998 by RealNetworks''). It was later renamed and marketed under the Windows Media umbrella.
NetS ...
Encoder, which was later renamed Windows Media Encoder
Windows Media Encoder (WME) is a discontinued, freeware media encoder developed by Microsoft which enables content developers to convert or capture both live and prerecorded audio, video, and computer screen images to Windows Media formats for ...
, and made available via the SDK. The NetShow encoder allowed the user to select a 2 pass option, where in the first pass the video was analyzed to create a color palette, and in the second pass converted to the palettized color space and encoded. Before encoding, the video could be scaled. Later versions of Windows Media Encoder dropped support for Microsoft Video 1 and only supported Windows Media Video
Windows Media Video (WMV) is a series of video codecs and their corresponding video coding formats developed by Microsoft. It is part of the Windows Media framework. WMV consists of three distinct codecs: The original video compression technology ...
.
See also
* Indexed color
In computing, indexed color is a technique to manage digital images' colors in a limited fashion, in order to save computer memory and file storage, while speeding up display refresh and file transfers. It is a form of vector quantization comp ...
* Color quantization
In computer graphics, color quantization or color image quantization is quantization applied to color spaces; it is a process that reduces the number of distinct colors used in an image, usually with the intention that the new image should be as v ...
* Block truncation coding Block Truncation Coding (BTC) is a type of lossy image compression technique for greyscale images. It divides the original images into blocks and then uses a quantizer to reduce the number of grey levels in each block whilst maintaining the same m ...
, a similar coding technique for grayscale content
* Color Cell Compression
Color Cell Compression is a lossy image compression algorithm developed by Campbell et al., in 1986, which can be considered an early forerunner of modern texture compression algorithms, such as S3 Texture Compression and Adaptive Scalable Textu ...
, a similar coding technique for color content, based on block truncation coding
* Apple Video
Apple Video is a lossy video compression and decompression algorithm (codec) developed by Apple Inc. and first released as part of QuickTime 1.0 in 1991. The codec is also known as QuickTime Video, by its FourCC RPZA and the name Road Pizza. (T ...
, a codec based on a similar design
* QuickTime Graphics
QuickTime Graphics is a lossy video compression and decompression algorithm (codec) developed by Apple Inc. and first released as part of QuickTime 1.x in the early 1990s. The codec is also known by the name Apple Graphics and its FourCC SMC. ...
, a codec based on a similar design
* Smacker video, a codec based on a similar design
* S3 Texture Compression S3 Texture Compression (S3TC) (sometimes also called DXTn, DXTC, or BCn) is a group of related lossy texture compression algorithms originally developed by Iourcha et al. of S3 Graphics, Ltd. for use in their Savage 3D computer graphics accelerat ...
, a texture compression format based on a similar design
References
External links
Microsoft Video 1 - MultimediaWiki
Microsoft Video 1 decoder - FFmpeg
Microsoft Video 1 encoder - FFmpeg
Video codecs
Film and video technology
Lossy compression algorithms
Microsoft proprietary codecs
{{multimedia-software-stub