US 7180944 B2 Zusammenfassung A low-complexity spatial downscaling video transcoder and method thereof are disclosed. The transcoder comprises a decoder having a reduced DCT-MC unit, a DCT-domain downscaling unit, and an encoder. The decoder performs the DCT-MC operation at a reduced-resolution for P-/B-frames in an MPEG coded bit-stream. The DCT-domain downscaling unit is used for spatial downscaling in the DCT-domain. After the downscaling and the motion vectors re-sampling, the encoder determines the encoding modes and outputs the encoded bit-stream. Compared with the original CDDT, this invention can achieve significant computation reduction and speeds up the transcoder without any quality degradation.
Ansprüche 1. A low-complexity spatial downscaling video transcoder, comprising:
a decoder having a reduced discrete cosine transform motion compensation (DCT-MC) unit, said decoder receiving incoming bit-streams, using said reduced DCT-MC unit to integrate DCT-domain motion compensation and downscaling operations into a reduced-resolution DCT-MC for B or P frames in MPEG standard, performing reduced-resolution decoding, generating an estimated motion vector, and performing full-resolution decoding for I-frames in MPEG standard;
a DCT-domain downscaling unit outputting downscaling results of the decoded I-frames for encoding; and
an encoder receiving said estimated motion vector and the downscaling results from said DCT-domain downscaling unit, determining encoding modes and outputting encoded bit-streams.
2. The low-complexity spatial downscaling video transcoder as claimed in
3. The low-complexity spatial downscaling video transcoder as claimed in
4. The low-complexity spatial downscaling video transcoder as claimed in
5. The low-complexity spatial downscaling video transcoder as claimed in
6. The low-complexity spatial downscaling video transcoder as claimed in
7. The low-complexity spatial downscaling video transcoder as claimed in
a full frame memory, saving decoded and inverse quantized incoming bit-streams or reconstructed frames of downscaled resolution;
a full DCT-MCdec, performing discrete cosine transform and motion compensation of full resolution for P-frames; and
a spatial downscaled DCT-MCdec, performing discrete cosine transform and motion compensation of reduced resolution for B-frames.
8. The low-complexity spatial downscaling video transcoder as claimed in
a downscaled frame memory, saving decoded and inverse quantized incoming bit-streams or reconstructed frames of downscaled resolution;
a low-frequency coefficient extractor, extracting the low-frequency coefficients of incoming data from said downscaled frame memory; and
a spatial downscaled DCT-MCdec, performing downscaling and motion compensation of reduced resolution for B-frames and P-frames.
9. A low-complexity spatial downscaling video transcoding method, comprises the following steps:
(a) receiving incoming bit-streams, using a reduced discrete cosine transform motion compensation (DCT-MC) unit to integrate DCT-domain motion compensation and downscaling operations into a reduced-resolution DCT-MC for B or P frames in MPEG standard, performing reduced-resolution decoding, generating an estimated motion vector, and performing full-resolution decoding for I-frames in MPEG standard;
(b) outputting downscaling results of the decoded I-frames for encoding; and
(c) receiving said estimated motion vector and the downscaling results from said DCT-domain downscaling unit, determining encoding modes and outputting encoded bit-streams.
10. The low-complexity spatial downscaling video transcoding method as claimed in
11. The low-complexity spatial downscaling video transcoding method as claimed in
12. The low-complexity spatial downscaling video transcoding method as claimed in
13. The low-complexity spatial downscaling video transcoding method as claimed in
for a reduced Nx×Ny system, original Nx×Ny macroblocks (MBs) are reduced to one macroblock, and the re-sampled motion vector is the activity-weighted median of Nx×Ny incoming vector set V={v1, v2, . . . , vN
14. The low-complexity spatial downscaling video transcoding method as claimed in
(c1) If all original macroblocks are intra-coded, then the mode for the reduced macroblock is set as intra-coded;
(c2) If all original macroblocks are skipped, the reduced macroblock is also skipped; and
(c3) The mode for the reduced macroblock is set as inter-coded in all other cases.
15. The low-complexity spatial downscaling video transcoding method as claimed in
16. The low-complexity spatial downscaling video transcoding method as claimed in
17. The low-complexity spatial downscaling video transcoding method as claimed in
Beschreibung The present invention generally relates to video transcoders in communication, and more specifically to a low-complexity spatial downscaling video transcoder and method thereof. The moving picture experts group (MPEG) developed a generic video compression standard that defines three types of frames, called Intra-frame (I-frame), predictive-frame (P-frame) and bi-directionally predictive frame (B-frame). A group of pictures (GOP) comprises an I-frame and a plural of P-frames and B-frames. In recent years, due to the advances of network technologies and wide adoptions of video coding standards, digital video applications become increasingly popular in our daily life. Networked multimedia services, such as video on demand, video streaming, and distance learning, have been emerging in various network environments. These multimedia services usually use pre-encoded videos for transmission. The heterogeneity of present communication networks and user devices poses difficulties in delivering these bit-streams to the receivers. The sender may need to convert one preencoded bit-stream into a lower bit-rate or lower resolution version to fit the available channel bandwidths, the screen display resolutions, or even the processing powers of diverse clients. Many practical applications such as video conversions from DYD to VCD, i.e., MPEG-2 to MPEG-1, and from MPEG-1/2 to MPEG-4 involve such spatial-resolution, format, and bit-rate conversions. Dynamic bit-rate or resolution conversions may be achieved using the scalable coding schemes in current coding standards to support heterogeneous video communications. They, however, usually just provide a very limited support of heterogeneity of bit-rates and resolutions, e.g., MPEG-2 and H.263+, or introduce significantly higher complexity at the client decoder, e.g., MPEG-4 FGS. Video transcoding is a process of converting a previously compressed video bit-stream into another bit-stream with a lower bit-rate, a different display format (e.g., downscaling), or a different coding method (e.g., the conversion between H.26x and MPEG-x, or adding error resilience), etc. It is considered an efficient means of achieving fine and dynamic adaptation of bit-rates, resolutions, and formats. In realizing transcoders, the computational complexity and picture quality are usually the two most important concerns. A straightforward realization of video transcoders is the Cascaded Pixel-domain Downscaling Transcoder (CPDT) that cascades a decoder followed by an encoder as shown in Recently, DCT-domain transcoding schemes have become very attractive because they can avoid the discrete cosine transform (DCT) and the inverse discrete cosine transform (IDCT) computations. Also, several efficient schemes were developed for implementing the DCT-domain motion compensation (DCT-MC). However, the conventional simplified DCT-domain transcoder cannot be used for spatial/temporal downscaling because it has to use the same motion vectors that are decoded from the incoming video at the encoding stage. The outgoing motion vectors usually are different from the incoming motion vectors in spatial/temporal downscaling applications. The firstly proposed Cascaded DCT-domain Downscaling Transcoder (CDDT) architecture is depicted in It takes 8 matrix multiplications and 3 matrix additions to compute Eq. (1) directly. However, the following relationships of geometric transform matrices hold: Hh To reduce the computation of the DCT-MC, the number of matrix multiplications can be reduced from 24 to 18 by the conventional shared information method, while the number of matrix additions/subtractions is a bit increased. This leads to a computational reduction of about 25% in the DCT-MC operation. A more efficient DCT-domain downscaling scheme, named DCT decimation, was then proposed for image downscaling and later adopted in video transcoding. This DCT decimation scheme extracts the 4×4 low-frequency DCT coefficients from the four original blocks b1–b4, then combines the four 4×4 sub-blocks into an 8×8 block. Let B1, B2, B3, and B4, represent the four original 8×8 DCT blocks; {circumflex over (B)}1, {circumflex over (B)}2, {circumflex over (B)}3 and {circumflex over (B)}4 the four 4×4 low-frequency sub-blocks of B1, B2, B3, and B4, respectively; {circumflex over (b)}i=IDCT({circumflex over (B)}i), i=1, . . . , 4. Then To compute {circumflex over (B)}=DCT({circumflex over (b)}) directly from {circumflex over (B)}1, {circumflex over (B)}2, {circumflex over (B)}3, and {circumflex over (B)}4, it can use the following expression:
In addition, an architecture similar to the CDDT was proposed, where a reduced-size frame memory is used in the DCT-domain decoder loop for computation and memory reduction which may lead to some drifting errors. The present invention has been made to overcome the above-mentioned drawback of conventional DCT-domain downscaling transcoder. The primary object of the present invention is to provide a low-complexity spatial downscaling video transcoder. The spatial downscaling video transcoder of the invention integrates the DCT-domain decoding and downscaling operations in the downscaling CDDT into a reduced-resolution DCT-MC so as to achieve significant reduction of computations without any quality degradation. The spatial downscaling video transcoder of the invention comprises a decoder having a reduced DCT-MC unit, a DCT-domain downscaling unit, and an encoder. The decoder receives incoming bit-streams, uses the reduced DCT-MC unit to integrate the DCT-domain motion compensation and downscaling operations in the downscaling CDDT into a reduced-resolution DCT-MC for B or P frames in MPEG standard, performs the reduced-resolution decoding, generates an estimated motion vector, and performs the full-resolution decoding for I-frames in MPEG standard. After downscaling the decoded I-frames, the DCT-domain downscaling unit outputs the results for encoding. The encoder receives the estimated vector and the downscaling results from the DCT-domain downscaling unit, determines encoding modes and outputs encoded bit-streams. The spatial downscaling video transcoder of the invention has two preferred embodiments. In the first preferred embodiment, the low-complexity operation performs the full-resolution decoding for I and P frames and the reduced-resolution decoding for B frames. When performing the DCT-MC downscaling for B-frames in the decoder-loop, only the low-frequency portions are extracted while I and P frames are decoded at the full picture resolution. In this way, for B-frames, only the reduced-resolution DCT-MC is required in the decoder-loop. Since B-frames usually occupy a large portion of an I-B-P structured MPEG video, the computation saving can be very significant. In the second preferred embodiment of the invention, the low computational complexity is achieved by performing the reduced-resolution decoding for all B and P frames. Therefore, every block of P-frames has only nonzero low-frequency DCT coefficients and all high-frequency coefficients are discarded. According to the architecture of the video transcoder, the spatial downscaling video transcoding method of the invention also provides an activity-weighted median filtering scheme for re-sampling motion vectors, and a scheme for determining the coding modes. The spatial downscaling video transcoding method of the invention mainly comprises the following steps: (a) receiving incoming bit-streams, using a reduced DCT-MC unit to integrate the DCT-domain motion compensation and downscaling operations in the downscaling CDDT into a reduced-resolution DCT-MC for B or P frames in MPEG standard, performing the reduced-resolution decoding, generating an estimated motion vector, and performing the full-resolution decoding for I-frames in MPEG standard; (b) after downscaling the decoded I-frames, outputting the results for encoding; (c) receiving the estimated vectors and the DCT-domain downscaling results as well as determining the encoding modes and outputting the encoded bit-stream. This invention compares the average peak signal-to-noise ratio (PSNR) performance and processing speed of various transcoders. The luminance PSNR values of each frame are compared. The experimental results show that, as compared to the original CDDT, the first preferred embodiment of the invention can increase the processing speed over 60% without any quality degradation for videos with the (15,3) GOP structure. The second preferred embodiment of the invention can further increase the speed, while introducing below 0.3 dB quality degradation in the luminance component. By using the shared information approach, the processing speed of two preferred embodiments of the invention can be further improved without sacrificing the video quality. The foregoing and other objects, features, aspects and advantages of the present invention will become better understood from a careful reading of a detailed description provided herein below with appropriate reference to the accompanying drawings. The spatial downscaling video transcoder of the invention is used to reduce the computation by the conventional CDDT. The decoder-loop of the conventional CDDT is operated at the full picture resolution, while the encoding is performed at the quarter resolution. Instead of using the whole DCT coefficients decoded from the decoder loop, the DCT-domain downscaling scheme of the invention only exploits the low-frequency DCT coefficients of each decoded block for downscaling. Accordingly, the spatial downscaling video transcoding method of the invention mainly comprises the following steps: (a) receiving incoming bit-streams, using a reduced DCT-MC unit to integrate the DCT-domain motion compensation and downscaling operations in the downscaling CDDT into a reduced-resolution DCT-MC for B or P frames in MPEG standard, performing the reduced-resolution decoding, generating an estimated motion vector, and performing the full-resolution decoding for I-frames in MPEG standard; (b) after downscaling the decoded I-frames, outputting the results for encoding; (c) receiving the estimated vector and the DCT-domain downscaling results as well as determining encoding modes and outputting encoded bit-streams. In the first preferred embodiment of the invention, the low-complexity operation performs the full-resolution decoding for I and P frames and the reduced-resolution decoding for B frames. Therefore, in step (a) of the transcoding scheme depicted in the first preferred embodiment, when performing the DCT-MC downscaling for B-frames in the decoder-loop, only the low-frequency coefficients are extracted while I and P frames are decoded at the full picture resolution. Accordingly, referring to For simplicity, only one reference frame is used in the following to show the simplified DCT-MC for decoding B-frames. It can be easily extended toe the case with bidirectional prediction. By incorparating the DCT decimation into the DCT-MC of the decoder-loop for B frames, the following equation holds: It is worthy to mention that all matrices in Eq. (5) are 4×4 matrices. Therefore, if B-frames are decoded with quarter resolution, then it takes 6×43 multiplications and 21×42 additions for Eq. (5). While for Eq (1), it takes 2×83 multiplications and 14×82 additions. Therefore, the number of multiplication operations reduces about 60% in DCT-MCdec. Furthermore, coding block Ni usually has many zero high-frequency coefficients. Therefore, this scheme has fewer computations than the number of computations mentioned above. Also, by the symmetric property of geometric transform matrices, that is Hh Eq. (6) needs 20 4×4-matrix multiplications and 15 4×4-matrix additions, while it takes 6 8×8-matrix multiplications and 3 8×8-matrix additions for Eq (2). It is worthy to mention that, although B-frames are decoded with the quarter resolution, the performance is the same as that of the original CDDT. Therefore, the architecture of the first preferred embodiment of this invention does not induce any quality degradation. The computation can be further reduced by applying the quarter-resolution decoding for all P and B-frames. In this way, each block of the reference P-frame has only 4×4 nonzero low-frequency DCT coefficients (i.e., B12, B21, and B22 in (4) are all zero matrices), (4) can thus be reduced as
Therefore, in step (a) of the transcoding method of the second preferred embodiment, the decoder-loop extracts only the low-frequency portions when performing the DCT-MC downscaling for B-frames and P-frames while I-frames are decoded at the full picture resolution. After the downscaling, the motion vectors need to be re-sampled to obtain a correct value. Full-range motion re-estimation is computationally too expensive, thus not suited to practical applications. Several conventional methods were proposed for fast re-sampling the motion vectors based on the motion information of the incoming frame. Three conventional motion vector re-sampling methods were compared: median filtering, averaging, and majority voting, where the median filtering scheme was shown to outperform the other two. For a reduced Nx×Ny system, original Nx×Ny macroblocks can be reduced to one macroblock. As a generation of median filtering scheme, this invention uses the activity-weighted median of the Nx×Ny incoming vector set V={v1, v2, . . . , vN The MB coding modes also need to be re-determined after the downscaling. In the invention, the rules for determining the coding modes of the invention are as follows:
Note that, the motion vectors of skipped MBs are set to zero The speed-up gain is dependent on the GOP structure and size used. The larger the number of B-frames in a GOP, the higher the performance gain of the first preferred embodiment of the invention, while the speed-up gain of the second preferred embodiment of the invention depends on the number of P- and B-frames in a GOP. By using the shared information approach, the processing speed (the parenthesized values in In summary, this invention provides efficient architectures for DCT-domain spatial-downscaling video transcoders. Methods for realizing the invention include providing an activity-weighted median filtering scheme for re-sampling motion vectors, and a method for determining the coding modes. Two embodiments of the invention integrate the DCT-domain decoding and downscaling operations in the downscaling CDDT into a reduced-resolution DCT-MC so as to achieve significant reduction of computations. The first embodiment of the invention can speed up the decoding and downscaling of B-frames without sacrificing the visual quality, while the second embodiment can speed up the decoding and downscaling of P- and B-frames with acceptable quality degradation. By using the shared information approach, the processing speed of the DCT-domain Transcoder of the invention can be further improved. Although the present invention has been described with reference to the preferred embodiments, it will be understood that the invention is not limited to the details described thereof. Various substitutions and modifications have been suggested in the foregoing description, and others will occur to those of ordinary skill in the art. Therefore, all such substitutions and modifications are intended to be embraced within the scope of the invention as defined in the appended claims. Patentzitate
Nichtpatentzitate
Referenziert von
Klassifizierungen
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||