CN1194544C - Video Coding Method Based on Time-Space Domain Correlation Motion Vector Prediction - Google Patents
Video Coding Method Based on Time-Space Domain Correlation Motion Vector Prediction Download PDFInfo
- Publication number
- CN1194544C CN1194544C CN 03122941 CN03122941A CN1194544C CN 1194544 C CN1194544 C CN 1194544C CN 03122941 CN03122941 CN 03122941 CN 03122941 A CN03122941 A CN 03122941A CN 1194544 C CN1194544 C CN 1194544C
- Authority
- CN
- China
- Prior art keywords
- motion vector
- video
- motion
- correlation
- frame
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
基于时空域相关性运动矢量预测的视频编码方法,属于计算机数字视频编码技术领域。本发明特征在于,提出一种结合运动矢量在时间域和空间域上相关性的运动矢量预测方法,及相邻宏块间运动相关性的描述方法。方法步骤依次为摄像机将目标物状态转换成视频信号,视频信号通过采集卡转换成数字视频序列,并存放在视频缓存中,作为系统输入用于压缩;计算机进入完成对原始视频帧进行基于运动补偿/DCT的混合编码子程序,进行视频压缩并生成码流文件。本发明重点在于运动矢量预测子程序,其预测方法主要为:首先进行相邻宏块间运动相关性的判断,再根据这一判断结果,开始执行宏块运动矢量预测程序。该系统有效地提高了运动矢量的预测的精度及视频编码效率。
The invention relates to a video coding method based on time-space domain correlation motion vector prediction, which belongs to the technical field of computer digital video coding. The present invention is characterized in that it proposes a motion vector prediction method combining motion vector correlation in time domain and space domain, and a description method of motion correlation between adjacent macroblocks. The steps of the method are that the camera converts the state of the target object into a video signal, and the video signal is converted into a digital video sequence through the acquisition card, and stored in the video buffer, and used as a system input for compression; the computer enters and completes the motion compensation based on the original video frame /DCT's hybrid encoding subroutine, which performs video compression and generates code stream files. The present invention focuses on the motion vector prediction subroutine, and its prediction method mainly includes: firstly, judge the motion correlation between adjacent macroblocks, and then start to execute the macroblock motion vector prediction program according to the judgment result. The system effectively improves the motion vector prediction accuracy and video coding efficiency.
Description
技术领域:Technical field:
本发明涉及计算机数字视频编码技术领域,针对的是视频编码系统,如HDTV、HD-DVD、流媒体服务器等应用。The invention relates to the technical field of computer digital video coding, and is aimed at video coding systems, such as HDTV, HD-DVD, streaming media servers and other applications.
背景技术:Background technique:
视频信息的数据量大,为了有效利用带宽,视频信息在存储或传输之前,必须经过高效压缩。编码效率是表征编码系统的重要指标之一,在率失真的意义下,编码效率是指在一定重建视频质量的情况下,编码系统输出的比特率;或在一定输出的比特率的情况下,获得的重建视频的质量。Video information has a large amount of data. In order to effectively utilize bandwidth, video information must be compressed efficiently before storage or transmission. Coding efficiency is one of the important indicators to characterize the coding system. In the sense of rate distortion, coding efficiency refers to the bit rate output by the coding system under the condition of certain reconstructed video quality; or under the condition of certain output bit rate, The quality of the reconstructed video obtained.
在基于运动补偿/DCT的混合编码方法中,运动估计得到运动矢量需要编码,并同纹理信息一起形成压缩码流,以便在解码时能正确重建视频图像。据统计,在整个输出码流中运动矢量输出的码流通常可以占到10~40%左右。运动矢量编码通常包括运动矢量的预测和熵编码两部分。运动矢量通过一定方法预测后,可以有效降低熵,从而提高其编码效率。另外,在采用基于H.264的编码框架时,运动矢量的预测还会影响到运动矢量和参考帧的最终选择。因此运动矢量预测对提高视频编码效率具有重要意义。In the hybrid coding method based on motion compensation/DCT, the motion vector obtained by motion estimation needs to be encoded, and together with the texture information, a compressed code stream is formed, so that the video image can be correctly reconstructed during decoding. According to statistics, the code stream output by the motion vector can usually account for about 10-40% of the entire output code stream. Motion vector coding usually includes two parts: motion vector prediction and entropy coding. After the motion vector is predicted by a certain method, the entropy can be effectively reduced, thereby improving its coding efficiency. In addition, when using the coding framework based on H.264, the prediction of the motion vector will also affect the final selection of the motion vector and the reference frame. Therefore, motion vector prediction is of great significance to improve video coding efficiency.
在现有的视频编码方法中,如H.264、H.263和MPEG-4等,运动矢量编码都采用了中值预测的方法。即如图1所示,E表示当前编码宏块,A、B、C和D分别表示其在空间域上左侧、上侧、右上侧和左上侧相邻宏块,宏块E运动矢量的预测因子取A、B、C三个宏块运动矢量的中值。应该说,中值预测方法是一种简单、高效运动矢量预测方法,其主要缺点在于:(1)没有利用运动矢量在时间域上的相关性。(2)对于运动复杂的视频序列其编码效率通常会大为降低。In the existing video coding methods, such as H.264, H.263 and MPEG-4, etc., the motion vector coding adopts the method of median prediction. That is, as shown in Figure 1, E represents the current coded macroblock, A, B, C and D represent its adjacent macroblocks on the left, upper, upper right and upper left in the space domain respectively, and the motion vector of macroblock E The predictor takes the median value of the motion vectors of the three macroblocks A, B, and C. It should be said that the median prediction method is a simple and efficient motion vector prediction method, and its main disadvantages are: (1) It does not utilize the correlation of the motion vector in the time domain. (2) For video sequences with complex motion, the coding efficiency is usually greatly reduced.
发明内容:Invention content:
本发明的目的在于克服目前编码系统中运动矢量预测方法的不足,有效地提高运动矢量的编码效率,设计了一种结合运动矢量在时间域和空间域上相关性的运动矢量预测方法。其技术思路特征在于:The purpose of the present invention is to overcome the deficiencies of the motion vector prediction method in the current coding system, effectively improve the coding efficiency of the motion vector, and design a motion vector prediction method that combines the correlation of the motion vector in the time domain and the space domain. Its technical thinking is characterized by:
1.综合利用了运动矢量在时间域和空间域上的相关性,并根据宏块间运动相关性的不同而采用不同的预测方法,提高了运动矢量的预测精度;1. The correlation of the motion vector in the time domain and the space domain is comprehensively utilized, and different prediction methods are adopted according to the motion correlation between macroblocks, which improves the prediction accuracy of the motion vector;
2.提出了一种适合于视频序列在时空域上相邻宏块间运动相关性的描述方法。该方法是通过时空域相邻宏块运动矢量的绝对差值来描述其运动相关性的。2. A description method suitable for the motion correlation between adjacent macroblocks in the video sequence in the space-time domain is proposed. In this method, the motion correlation of adjacent macroblocks is described by the absolute difference of the motion vectors of adjacent macroblocks in time and space.
本发明的技术方案参见图3-图6。这种基于时空域相关性运动矢量预测的视频编码方法,是由摄像机(1),将目标物状态转换成视频信号置于采集卡(2)中;采集卡将视频信号转换成数字视频序列,并存放在视频缓存中,这些数字视频序列或是以视频序列文件形式存放在计算机硬盘中的视频数据,都被称为原始视频序列,作为该系统的输入用于压缩;计算机(3)存放原始视频序列和执行视频编码子程序,并生成压缩后的码流文件,本发明的特征在于:Refer to Fig. 3-Fig. 6 for the technical solution of the present invention. This video encoding method based on temporal-space domain correlation motion vector prediction is to convert the state of the target object into a video signal by the camera (1) and place it in the acquisition card (2); the acquisition card converts the video signal into a digital video sequence, And stored in the video cache, these digital video sequences or the video data stored in the computer hard disk in the form of video sequence files are called original video sequences, which are used as the input of the system for compression; the computer (3) stores the original Video sequence and carry out video encoding subroutine, and generate the code stream file after the compression, the present invention is characterized in that:
计算机首先从采集卡的视频存储器或存放在计算机硬盘上的视频序列文件中读一帧视频数据到计算机的缓冲区中,通过执行视频编码子程序对该帧进行编码;计算机读取视频数据的时间间隔通常为1/30秒。The computer first reads a frame of video data from the video memory of the acquisition card or the video sequence file stored on the computer hard disk into the buffer area of the computer, and encodes the frame by executing the video encoding subroutine; the time for the computer to read the video data The interval is usually 1/30 second.
视频编码子程序采用了基于运动补偿/DCT的混合编码方法,除运动矢量预测子程序这一部分外,采用了国际视频编码标准H.264 JM6.0的编码框架。The video encoding subroutine adopts the hybrid encoding method based on motion compensation/DCT, except for the motion vector prediction subroutine, the encoding framework of the international video encoding standard H.264 JM6.0 is adopted.
视频编码子程序在视频编码时,一个输入的视频序列帧被分为16×16的宏块,编码过程是以宏块为单位进行的;计算机开始执行视频编码子程序后,首先对编码进行初始化,这些初始化工作主要包括对编码参数和缓冲区的设置。Video encoding subroutine During video encoding, an input video sequence frame is divided into 16×16 macroblocks, and the encoding process is carried out in units of macroblocks; after the computer starts to execute the video encoding subroutine, it first initializes the encoding , these initialization tasks mainly include the setting of encoding parameters and buffers.
然后计算机按照从上到下、从左到右的次序先对第一个宏块做运动估计与补偿;运动估计与补偿之后得到该宏块的运动矢量和残差图像,对其中的运动矢量,首先执行运动矢量子程序进行预测,然后对预测差值进行上下文自适应的变长编码(CAVLC);而对残差图像则首先进行DCT变换,然后对DCT系数进行量化和CAVLC编码;之后输出该宏块的压缩码流放入计算机的缓冲区中;最后进行解码、生成相应参考宏块;该宏块编码结束后,对当前编码帧的所有宏块循环执行上述编码过程,完成对一个视频序列帧的编码;一帧编码结束后循环编码下一帧,至到视频序列的最后一帧编码结束,并生成压缩后的码流文件,系统执行程序结束。Then the computer performs motion estimation and compensation on the first macroblock in the order from top to bottom and from left to right; after motion estimation and compensation, the motion vector and residual image of the macroblock are obtained, and for the motion vector, First execute the motion vector subroutine to predict, and then perform context-adaptive variable length coding (CAVLC) on the prediction difference; and first perform DCT transformation on the residual image, and then quantize and CAVLC the DCT coefficients; then output the The compressed code stream of the macroblock is put into the buffer of the computer; at last, it is decoded and the corresponding reference macroblock is generated; after the encoding of the macroblock is completed, the above encoding process is executed cyclically for all the macroblocks of the current coded frame, and a video sequence is completed. Frame encoding; after one frame is encoded, the next frame is cyclically encoded until the last frame of the video sequence is encoded, and a compressed code stream file is generated, and the system execution program ends.
在上述的视频编码子程序中,运动矢量预测子程序中所采用的预测方法,是根据相邻宏块间运动相关性的不同,综合利用了时间和空间域上的相关性对其进行预测编码的。In the above-mentioned video encoding subroutine, the prediction method used in the motion vector prediction subroutine is based on the difference in motion correlation between adjacent macroblocks, and comprehensively utilizes the correlation in the time and space domains to perform predictive encoding of.
其所述的运动矢量预测子程序中,其预测方法如下:In its described motion vector prediction subroutine, its prediction method is as follows:
(1)首先进行相邻宏块间运动相关性的判断;对于图2所示的宏块在时间域和空间域上的相邻关系,设Ei是当前帧i的编码宏块,Ai、Bi、Ci、Di、Gi、Hi分别为其左侧、上侧、右上侧、左上侧、右侧和下侧的相邻宏块,在前一帧(i-1)对应位置上的宏块分别表示为Ei-1、Ai-1、Bi-1、Ci-1、Di-1、Gi-1和Hi-1。(1) First, judge the motion correlation between adjacent macroblocks; for the adjacent relationship between the macroblocks shown in Figure 2 in the time domain and the spatial domain, let E i be the coded macroblock of the current frame i, A i , B i , C i , D i , G i , H i are the adjacent macroblocks on the left, upper, upper right, upper left, right and lower respectively, in the previous frame (i-1) The macroblocks at corresponding positions are denoted as E i-1 , A i-1 , B i-1 , C i-1 , D i-1 , G i-1 and H i-1 respectively.
这里设B={C1 C2 C3 C4 C5}为Ei相邻宏块Ai、Bi、Ei-1、Gi-1和Hi-1的运动矢量组成的集合。Here, let B={C 1 C 2 C 3 C 4 C 5 } be a set composed of motion vectors of E i neighboring macroblocks A i , B i , E i-1 , G i-1 and H i-1 .
(a)如果对于i,i∈[1,5],都满足(a) If for i, i∈[1, 5], all satisfy
|Ci-C3|≤TH|C i -C 3 |≤TH
则Ei相邻宏块间的运动相关性为高。Then the motion correlation between adjacent macroblocks of E i is high.
(b)如果对于i,i∈[1,5],都满足(b) If for i, i∈[1, 5], all satisfy
|Ci-C3|>TH|C i -C 3 |>TH
则Ei相邻宏块间的运动相关性为低。Then the motion correlation between adjacent macroblocks of E i is low.
(2)根据(1)的判断结果,当前编码宏块的运动矢量的预测方法如下:(2) According to the judgment result of (1), the prediction method of the motion vector of the current coded macroblock is as follows:
为了利用时间、空间域上的相关性,本发明选取Ai、Bi和Ci的运动矢量作为空间域上的侯选预测因子,Ei-1、Gi-1和Hi-1的运动矢量作为时间域上的侯选预测因子,运动矢量预测的具体算法如下:In order to utilize the correlation in the time and space domains, the present invention selects the motion vectors of A i , B i and C i as candidate predictors in the space domain, and the motion vectors of E i-1 , G i-1 and H i-1 The motion vector is used as a candidate predictor in the time domain, and the specific algorithm for motion vector prediction is as follows:
(1)当Ei-1、Gi-1和Hi-1都不存在时,则以Ai、Bi、Ci作为侯选预测因子;(1) When E i-1 , G i-1 and H i-1 do not exist, use A i , B i , and C i as candidate predictors;
(2)当相邻宏块间的运动相关性为高时,则选取Ai、Bi和Ei-1为侯选预测因子;(2) When the motion correlation between adjacent macroblocks is high, select A i , B i and E i-1 as candidate predictors;
(3)当相邻宏块间的运动相关性为低时,则选取Ai、Bi、Gi-1和Hi-1为侯选预测因子;(3) When the motion correlation between adjacent macroblocks is low, select A i , B i , G i-1 and H i-1 as candidate predictors;
(4)当任意一个Ai、Bi、Ci和Di采用帧内编码时,如果在(i-1)帧与其对应位置宏块的运动矢量存在,则该宏块的运动矢量选取在(i-1)帧与其对应位置块相同的运动矢量和参考帧,否则该块的运动矢量置为(0,0);(4) When any one of A i , B i , C i and D i adopts intra-frame coding, if the motion vector of the macroblock at the (i-1) frame and its corresponding position exists, then the motion vector of the macroblock is selected at The (i-1) frame has the same motion vector and reference frame as its corresponding position block, otherwise the motion vector of the block is set to (0, 0);
(5)如果在Ai、Bi、Ci、Ei-1、Gi-1和Hi-1中存在与Ei具有相同参考帧的宏块,则预测因子选取该宏块相同的运动矢量,否则预测因子选取侯选预测因子的中值;(5) If there is a macroblock with the same reference frame as E i in A i , B i , C i , E i-1 , G i-1 and H i-1 , the predictor selects the same macroblock motion vector, otherwise the predictor chooses the median of the candidate predictors;
预测因子即为当前编码宏块的运动矢量的预测值;运动矢量在水平和垂直方向上的分量都采用上述预测方法。The prediction factor is the prediction value of the motion vector of the currently coded macroblock; the above-mentioned prediction methods are used for the components of the motion vector in the horizontal and vertical directions.
依据大量实验测试结果,我们选取TH=8。According to a large number of experimental test results, we choose TH=8.
本发明的视频编码系统设计了一种结合运动矢量在时间域和空间域上相关性的运动矢量预测方法。这种预测方法根据宏块间运动相关性的不同,综合利用了时间和空间域上的相关性,有效地提高了运动矢量的预测的精度,最终提高了系统的编码效率。The video coding system of the present invention designs a motion vector prediction method that combines the correlation of the motion vector in the time domain and the space domain. According to the difference of motion correlation between macroblocks, this prediction method comprehensively utilizes the correlation in time and space domains, effectively improves the accuracy of motion vector prediction, and finally improves the coding efficiency of the system.
下面将结合附图对具体实施方式进行详细说明。The specific implementation manner will be described in detail below in conjunction with the accompanying drawings.
附图说明:Description of drawings:
图1是宏块在空间域上的相邻关系;Figure 1 is the adjacent relationship of macroblocks in the spatial domain;
图2是宏块在时间域和空间域上的相邻关系;Fig. 2 is the adjacent relationship of macroblocks on the time domain and the space domain;
图3是视频编码系统框图;Fig. 3 is a block diagram of a video coding system;
图4是视频编码系统主程序框图;Fig. 4 is the main program block diagram of video encoding system;
图5是视频编码子程序框图;Fig. 5 is a subroutine block diagram of video encoding;
图6是运动矢量预测方法的子程序框图。Fig. 6 is a subroutine diagram of the motion vector prediction method.
具体实施方式:Detailed ways:
本发明的视频编码系统的目的在于:在获得一定视频重建质量的前提下,尽可能地压缩视频序列的数据量,以便于视频信息的存储或传输。在图3所示的视频编码系统框图中,摄像机和采集卡是市售的,用于将目标对象转换成计算机可以处理的数字视频序列。图中的视频序列文件表示该系统输入的也可以是通过其他设备获得的、并事先存放在计算机硬盘上中数字视频序列。这些数字视频序列就是原始视频序列,作为该系统的输入用于压缩。在计算机上执行视频编码子程序,对原始视频序进行压缩,压缩的结果是以生成码流文件的形式存放在计算机硬盘上。与输入的原始视频序列相比,生成的码流文件的数据量非常小,因而该系统达到了对视频信息压缩的目的。The purpose of the video coding system of the present invention is to compress the data volume of the video sequence as much as possible on the premise of obtaining a certain video reconstruction quality, so as to facilitate the storage or transmission of video information. In the block diagram of the video encoding system shown in Figure 3, cameras and capture cards are commercially available to convert the target object into a digital video sequence that can be processed by a computer. The video sequence file in the figure indicates that the input of the system can also be a digital video sequence obtained through other equipment and stored in the computer hard disk in advance. These digital video sequences are the raw video sequences that are used as input to the system for compression. Execute the video coding subroutine on the computer to compress the original video sequence, and the compressed result is stored on the hard disk of the computer in the form of a code stream file. Compared with the input original video sequence, the data volume of the generated code stream file is very small, so the system achieves the purpose of compressing video information.
图4所示是该系统执行程序的总体框图。在图4中,视频编码子程序采用了基于运动补偿/DCT的混合编码方法。除运动矢量预测子程序这一部分外,本发明采用了国际视频编码标准H.264 JM6.0的基本编码框架,其程序流程如图5所示。应该指出,在视频编码时,一个输入的视频序列帧被分为16×16的宏块,编码过程是以宏块为单位进行的。计算机开始执行视频编码子程序后,首先对编码进行初始化,这些初始化工作包括对视频序列格式、帧率、量化参数、运动矢量的搜索范围、参考帧的数目、各缓冲区以及输出码流文件名等的设置。然后计算机按照从上到下、从左到右的次序先将第一个宏块的数据读入缓冲区,对该宏块做运动估计与补偿,运动估计与补偿之后得到该宏块的运动矢量和残差图像,对其中的运动矢量,首先执行如图6所示的运动矢量子程序进行预测,然后对预测差值进行上下文自适应的变长编码(CAVLC);而对残差图像则首先进行DCT变换,然后对DCT系数进行量化和CAVLC编码,之后输出该宏块的压缩码流并存放在缓冲区中。为了下一帧编码的需要,最后进行解码、生成相应参考宏块,存放在计算机内存中。该宏块编码结束后,对当前编码帧的所有宏块循环执行上述编码过程,完成对一个视频序列帧的编码。Figure 4 shows the overall block diagram of the system to execute the program. In Figure 4, the video encoding subroutine adopts a hybrid encoding method based on motion compensation/DCT. Except this part of motion vector prediction subroutine, the present invention adopts the basic coding framework of international video coding standard H.264 JM6.0, and its program flow is as shown in Figure 5. It should be pointed out that during video encoding, an input video sequence frame is divided into 16×16 macroblocks, and the encoding process is performed in units of macroblocks. After the computer starts to execute the video encoding subroutine, it first initializes the encoding, which includes the video sequence format, frame rate, quantization parameters, search range of motion vectors, number of reference frames, buffers, and output stream file names etc. settings. Then the computer first reads the data of the first macroblock into the buffer according to the order from top to bottom and from left to right, performs motion estimation and compensation on the macroblock, and obtains the motion vector of the macroblock after motion estimation and compensation And the residual image, for the motion vector therein, first execute the motion vector subroutine shown in Figure 6 to predict, then carry out context-adaptive variable length coding (CAVLC) to the prediction difference; and for the residual image, first Carry out DCT transformation, then quantize and CAVLC code the DCT coefficients, and then output the compressed code stream of the macroblock and store it in the buffer. In order to meet the needs of the next frame encoding, it is finally decoded to generate a corresponding reference macroblock, which is stored in the computer memory. After the encoding of the macroblock is completed, the above encoding process is cyclically performed on all the macroblocks of the current encoding frame, and the encoding of a video sequence frame is completed.
对于图5所示的视频编码子程序,其中的运动矢量预测子程序部分其程序框图如图6所示,该运动矢量预测方法是本发明的核心,与目前国际视频编码标准中运动矢量预测方法不同。该预测方法根据相邻宏块间运动相关程度的不同,综合利用了时间和空间域上的相关性进行运动矢量的预测。其具体执行过程如下所述。在图5所示的初始过程中,设置两个长度都为:For the video encoding subroutine shown in Figure 5, its program block diagram of the motion vector prediction subroutine part wherein is as shown in Figure 6, this motion vector prediction method is the core of the present invention, and motion vector prediction method in the current international video coding standard different. According to the different degree of motion correlation between adjacent macroblocks, this prediction method comprehensively utilizes the correlation in time and space domains to predict the motion vector. Its specific implementation process is as follows. In the initial process shown in Figure 5, set both lengths to:
的缓冲区,其中W为图像帧的宽度,H图像帧的高度,用于存放前一帧和当前帧所有4×4子块的运动矢量。where W is the width of the image frame and H is the height of the image frame, which are used to store the motion vectors of all 4×4 sub-blocks of the previous frame and the current frame.
在计算机进入图6的运动矢量预测子程序后,首先对当前编码宏块Ei进行相邻宏块间运动相关性的判断,执行的算法程序如前所述。在执行完Ei相邻宏块间运动相关性的判断之后,根据这一判断结果,开始执行宏块Ei运动矢量预测程序,执行的程序步骤也如前所述。After the computer enters the motion vector prediction subroutine in FIG. 6 , it firstly judges the motion correlation between adjacent macroblocks E i for the current coded macroblock E i , and the algorithm program executed is as described above. After the judgment of the motion correlation between adjacent macroblocks E i is completed, according to the judgment result, the motion vector prediction procedure of the macroblock E i starts to be executed, and the executed program steps are also as described above.
最后,当前编码宏块的运动矢量与预测因相减,得到预测差值。Finally, the motion vector of the currently coded macroblock is subtracted from the predictor to obtain the prediction difference.
应该说明的是,计算机需要对运动矢量在水平和垂直方向上的分量单独执行上述程序,完成运动矢量的预测。It should be noted that the computer needs to separately execute the above program on the components of the motion vector in the horizontal and vertical directions to complete the prediction of the motion vector.
为了验证本发明的实际编码效率,进行了如下的对比实验。对相同的视频序列,这里以Bus(352×288,150帧,30fps)序列为例,在本发明的编码系统上执行(1)本发明的编码程序;(2)国际编码标准H.264 JM6.0的基本编码程序,表2是本发明与H.264编码效率的比较。本发明的编码方法与H.264的唯一不同之处是选用的运动矢量预测方法的不同,其中本发明采用了基于时空域相关性的运动矢量预测方法。编码参数两者都按如表1所示的编码配置文件设置,量化参数QP都分别取20,28,34和40四个值进行实验。In order to verify the actual coding efficiency of the present invention, the following comparative experiments were carried out. For the same video sequence, take the Bus (352 * 288, 150 frames, 30fps) sequence as an example here, carry out (1) the coding program of the present invention on the coding system of the present invention; (2) international coding standard H.264 JM6 .0 basic encoding procedure, Table 2 is the comparison of the present invention and H.264 encoding efficiency. The only difference between the encoding method of the present invention and H.264 is the difference in the selected motion vector prediction method, wherein the present invention adopts the motion vector prediction method based on temporal-space domain correlation. Both encoding parameters are set according to the encoding configuration file shown in Table 1, and the quantization parameter QP takes four values of 20, 28, 34 and 40 respectively for experiments.
表1是编码系统的配置文件。配置文件用于设置系统的编码参数,其中主要包括:运动估计的精度为1/4像素,搜索范围为±32像素;参考帧的数目为2帧;熵编码采用上下文自适应的变长编码(CAVLC);禁止块大小自适应变换(ABT);必须执行Hadamard变换和R-D优化;图像组的结构是第一帧为I帧,以后都为P帧;Table 1 is the configuration file of the encoding system. The configuration file is used to set the coding parameters of the system, which mainly include: the precision of motion estimation is 1/4 pixel, the search range is ±32 pixels; the number of reference frames is 2 frames; the entropy coding adopts context-adaptive variable-length coding ( CAVLC); block size adaptive transformation (ABT) is prohibited; Hadamard transformation and R-D optimization must be performed; the structure of the picture group is that the first frame is an I frame, and all subsequent frames are P frames;
表2中PSNR表示重建视频图像的峰值信噪比。比特率是指每秒输出的比特数。节约码率定义为在量化参数一定时,执行H.264与本发明编码输出码率的差值与执行H.264编码输出码率的百分比。平均节约码率定义为在不同量化参数条件下节约码率的均值。PSNR in Table 2 represents the peak signal-to-noise ratio of the reconstructed video image. Bit rate refers to the number of bits output per second. The saved code rate is defined as the percentage of the difference between the output code rate of H.264 encoding and the encoding output of the present invention and the output code rate of H.264 encoding when the quantization parameter is constant. The average saved code rate is defined as the average saved code rate under different quantization parameter conditions.
表2编码效率结果的比较,是两者在采用同一量化参数时,在重建视频质量(PSNR)相同的条件下,输出比特率结果的比较。输出比特率越小说明编码效率越高。可以看出本发明优于采用H.264编码系统的编码效率。The comparison of the coding efficiency results in Table 2 is the comparison of the output bit rate results under the condition of the same reconstruction video quality (PSNR) when the two use the same quantization parameter. The smaller the output bit rate, the higher the encoding efficiency. It can be seen that the present invention is superior to the encoding efficiency of the H.264 encoding system.
表1是编码系统的配置文件:
表2是编码结果示例:
Claims (3)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 03122941 CN1194544C (en) | 2003-04-25 | 2003-04-25 | Video Coding Method Based on Time-Space Domain Correlation Motion Vector Prediction |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 03122941 CN1194544C (en) | 2003-04-25 | 2003-04-25 | Video Coding Method Based on Time-Space Domain Correlation Motion Vector Prediction |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1457196A CN1457196A (en) | 2003-11-19 |
| CN1194544C true CN1194544C (en) | 2005-03-23 |
Family
ID=29411631
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 03122941 Expired - Fee Related CN1194544C (en) | 2003-04-25 | 2003-04-25 | Video Coding Method Based on Time-Space Domain Correlation Motion Vector Prediction |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1194544C (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102611881A (en) * | 2011-01-19 | 2012-07-25 | 华为技术有限公司 | Method and module for obtaining reference motion vector, encoding and decoding device |
Families Citing this family (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101204788B1 (en) * | 2004-06-03 | 2012-11-26 | 삼성전자주식회사 | Method of and apparatus for predictive video data encoding and/or decoding |
| WO2006057182A1 (en) * | 2004-11-26 | 2006-06-01 | Matsushita Electric Industrial Co., Ltd. | Decoding circuit, decoding device, and decoding system |
| ES2544978T3 (en) * | 2006-01-09 | 2015-09-07 | Matthias Narroschke | Adaptive coding of a prediction error in hybrid video coding |
| CN100409690C (en) * | 2006-05-19 | 2008-08-06 | 北京工业大学 | Compression method between video frames based on spatio-temporal correlation |
| CN100452882C (en) * | 2006-08-07 | 2009-01-14 | 清华大学 | Data caching method and implementation device for motion compensation with variable block size |
| CN101137065A (en) * | 2006-09-01 | 2008-03-05 | 华为技术有限公司 | Image encoding method, decoding method, encoder, decoder, codec method, and codec |
| CA2692782C (en) * | 2007-07-17 | 2013-09-24 | Nippon Telegraph And Telephone Corporation | Video encoding apparatus and method, video encoding program, and storage medium which stores the program |
| CN101404773B (en) * | 2008-11-25 | 2011-03-30 | 江苏大学 | A DSP-based Image Coding Method |
| CN102413323B (en) * | 2010-01-13 | 2014-03-12 | 中国移动通信集团广东有限公司中山分公司 | H.264-based video compression method |
| KR101522850B1 (en) * | 2010-01-14 | 2015-05-26 | 삼성전자주식회사 | Method and apparatus for encoding/decoding motion vector |
| KR20120016991A (en) * | 2010-08-17 | 2012-02-27 | 오수미 | Interprediction Method |
| CN112087630B (en) * | 2014-09-30 | 2022-04-08 | 华为技术有限公司 | Image prediction method, device, decoder and storage medium |
-
2003
- 2003-04-25 CN CN 03122941 patent/CN1194544C/en not_active Expired - Fee Related
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102611881A (en) * | 2011-01-19 | 2012-07-25 | 华为技术有限公司 | Method and module for obtaining reference motion vector, encoding and decoding device |
| CN102611881B (en) * | 2011-01-19 | 2014-06-25 | 华为技术有限公司 | Method and module for obtaining reference motion vector, encoding and decoding device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1457196A (en) | 2003-11-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN100348051C (en) | An enhanced in-frame predictive mode coding method | |
| JP3118237B1 (en) | Picture prediction decoding method | |
| KR100597402B1 (en) | Method for scalable video coding and decoding, and apparatus for the same | |
| CN103248893B (en) | From H.264/AVC standard to code-transferring method and transcoder thereof the fast frame of HEVC standard | |
| CN1784015A (en) | Inage predicting encoding method in frame | |
| CN1757240A (en) | Video encoding | |
| CN106961610B (en) | Novel super-high-definition video compression framework combined with super-resolution reconstruction | |
| CN1194544C (en) | Video Coding Method Based on Time-Space Domain Correlation Motion Vector Prediction | |
| WO2011110088A1 (en) | Method and divece for video predictive encoding | |
| CN101984665A (en) | Method and system for evaluating video transmission quality | |
| CN101068355A (en) | MPEG2-H.264 code fast converting method | |
| CN1777283A (en) | Microblock based video signal coding/decoding method | |
| WO2011088594A1 (en) | Video encoder, video decoder, method for video encoding and method for video decoding, separately for each colour plane | |
| CN103442228B (en) | Code-transferring method and transcoder thereof in from standard H.264/AVC to the fast frame of HEVC standard | |
| CN112188196A (en) | Method for rapid intra-frame prediction of general video coding based on texture | |
| CN1209928C (en) | Inframe coding frame coding method using inframe prediction based on prediction blockgroup | |
| CN1212014C (en) | Video coding method based on time-space domain correlation quick movement estimate | |
| CN104954806A (en) | Intra-frame video optimization coding method | |
| CN1671208A (en) | A method and device for converting MPEG-2 to AVS video stream format | |
| CN116980609A (en) | Video data processing methods, devices, storage media and equipment | |
| CN101977317A (en) | Intra-frame prediction method and device | |
| CN1067832C (en) | Method for improving the realization of video-frequency coding device | |
| CN113055670A (en) | HEVC/H.265-based video coding method and system | |
| JP3343554B1 (en) | Image prediction decoding method and image prediction encoding device | |
| CN113132734A (en) | Encoding and decoding method, device and equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| C19 | Lapse of patent right due to non-payment of the annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |