The invention relates to a method of compressing a video signal, the method comprising predictively encoding frames of said video signal with reference to a prediction frame, calculating a quantization parameter for each encoded frame, and quantizing the encoded frames in accordance with said quantization parameter. The invention also relates to a compression arrangement, to a transmission or recording method and arrangement, to the compressed video signal and to a storage medium comprising that signal.
A video compression method as defined in the opening paragraph has been standardized by the Motion Frames Expert Group and is well-known as MPEG1 or MPEG2. The known method includes transformation of video pixels into frequency coefficients, quantization of said coefficients, and variable-length coding of the quantized coefficients. The quantization is controlled so as to achieve a desired quality or bit rate of the compressed signal.
The MPEG compression method produces I, P and B-frames. I-frames are encoded autonomously, i.e. without reference to another frame. P-frames are predictively encoded with reference to a previous (possibly motion-compensated) I or P-frame. B-frames are bidirectionally predictively encoded with reference to a previous and a subsequent I or P frame. B-frames are not themselves used as reference for encoding other frames.
The concept of B-frames in MPEG provides maximum encoding efficiency. However, the use of B-frames roughly doubles the complexity, memory capacity and memory bandwidth. In view thereof, MPEG encoders have been developed which produce I and P-frames only (“IP encoders”). A disadvantage of IP encoders is their efficiency. They need approximately 10–20% more bit rate than IPB encoders.
It is an object of the invention to provide an arrangement and method which overcomes the above-mentioned disadvantage of prior-art IP encoders.
To this end, the invention provides a video compression arrangement and method, a compressed signal, a storage medium, and a transmission or recording method and arrangement as defined in the independent claims. Advantageous embodiments are defined in the dependent claims.
The method in accordance with the invention quantizes selected P-frames more coarsely than other P-frames. This reduces the bit cost but degrades the image quality of said frames. The invention has a surprising effect. It was expected that the corresponding gain in bit cost would be lost in subsequent P-frames because the lower quality frames are used as prediction for subsequent P-frames. However, experiments have shown that this is not the case. It has been found that an IPPPP . . . sequence of frames, in which the quantization parameter of every other P-frame is multiplied by a factor of 1.4, has substantially the same bit rate as a conventional IBPBP . . . sequence having the same perceptual visual quality. In view thereof, the lower quality P-frames are also referred to as “virtual B-frames”.
Briefly summarized, the known encoder operates as follows. The input video frame X is divided into blocks of 8×8 pixels. The difference between each pixel block of input frame X and the corresponding block of a prediction frame Xp is discrete cosine transformed into a block of 8×8 coefficients. The coefficients are subsequently quantized, by which perceptually irrelevant picture details are irreversibly removed (lossy compression). The quantized coefficients are variable-length encoded and stored in a buffer from which the signal is applied to a transmission channel or record carrier. The encoded frame is locally decoded by inverse quantization, inverse discrete cosine transformation, and addition to the prediction frame Xp. The reconstructed frame is stored in the frame memory and subjected to motion estimation and compensation so as to constitute the prediction frame for the next input frame.
The encoder includes a quantization adapter 20 for calculating the quantization steps with which the DCT-coefficients are quantized. In this embodiment, the MPEG2 quantization mechanism is used in which a predetermined quantization matrix, which defines the step sizes to be applied to the respective coefficients of an 8×8 coefficient block, is multiplied by a quantization scale factor q (herein further referred to as quantization parameter). The quantization parameter is adapted from frame to frame, but may be ‘modulated’ within a frame as a function of local image details. The quantization parameter may be controlled to represent a given image quality (resulting in a variable bit rate) or a given bit rate (resulting in a variable quality). Various embodiments of quantization adapters (also referred to as bit rate controllers) are known in the art and may be employed in the encoder according to the invention.
The arrangement in accordance with the invention increases the quantization parameter q for selected frames, thereby degrading the image quality of said frames but reducing their bit costs. In this embodiment, the arrangement includes a multiplier 23 which multiplies the quantization parameter q calculated by the quantization adapter 20 by a predetermined factor F (e.g. F=1.4). A switch 22 has a position P in which the conventional quantization parameter q is applied to the quantizer 12 and a position P′ in which the coarser quantization parameter F.q is applied to the quantizer. The switch is controlled by a control circuit 22 in a predetermined manner. For example, the control circuit selects every other P-frame to be more coarsely quantized.
It is to be noted that the bit stream produced by an MPEG encoder in accordance with the invention fully complies with the MPEG standard. It should also be noted that although the invention has been described with reference to an IPP . . . encoder (no B-frames), the invention does not exclude B-frame encoding. For example, an encoder may produce an IBPBP . . . sequence in which selected P-frames have been quantized with the coarser quantization parameter. The coarser quantization parameter may even be applied to I-frames to the extent that such I-frames are used as prediction frames for subsequent frames.
A receiver 112 coupled to the transmission medium 110 then receives the transmission signal and applies the image signal to a display device 118.
In order to play back the recording signal RS, the record carrier 122 is inserted into a playback device 124 which processes the recording signal RS and generates an image signal. As with the embodiment of
The invention can be summarized as follows. The concept of B-frames gives the MPEG video compression standard its high encoding efficiency. However, B-frame encoding roughly doubles the complexity of an MPEG encoder. In view thereof, MPEG encoders have been developed which produce I-frames and P-frames only. They are less complex but also less efficient. To improve the efficiency of such “IPP encoders”, selected P-frames are quantized more coarsely than other P-frames, for example, by multiplying the conventional quantization step size by 1.4. Although this results in isolated frames (“virtual B-frames”) being encoded with a lower quality, the overall perceptual quality is not affected. It has been found that the gain in bit rate obtained by the coarser quantization is not lost in subsequent P-frames, even though the subsequent frames are encoded with reference to the lower quality frames.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word “comprising” does not exclude the presence of elements or steps other than those listed in a claim. The word “a” or “an” preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the device claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
Number | Date | Country | Kind |
---|---|---|---|
00201505 | Apr 2000 | EP | regional |
00203828 | Nov 2000 | EP | regional |
Number | Name | Date | Kind |
---|---|---|---|
5144426 | Tanaka et al. | Sep 1992 | A |
5638126 | Lim | Jun 1997 | A |
5892548 | Kim | Apr 1999 | A |
5990955 | Koz | Nov 1999 | A |
Number | Date | Country | |
---|---|---|---|
20010048718 A1 | Dec 2001 | US |