CN101917627A - Video fault-tolerant coding method based on self-adaptation flexible macro-block order - Google Patents

Video fault-tolerant coding method based on self-adaptation flexible macro-block order Download PDF

Info

Publication number
CN101917627A
CN101917627A CN 201010262087 CN201010262087A CN101917627A CN 101917627 A CN101917627 A CN 101917627A CN 201010262087 CN201010262087 CN 201010262087 CN 201010262087 A CN201010262087 A CN 201010262087A CN 101917627 A CN101917627 A CN 101917627A
Authority
CN
China
Prior art keywords
macro block
macro
moving region
motion
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.)
Granted
Application number
CN 201010262087
Other languages
Chinese (zh)
Other versions
CN101917627B (en
Inventor
陈耀武
周怡然
蒋炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN 201010262087 priority Critical patent/CN101917627B/en
Publication of CN101917627A publication Critical patent/CN101917627A/en
Application granted granted Critical
Publication of CN101917627B publication Critical patent/CN101917627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a video fault-tolerant coding method based on a self-adaptation flexible macro-block order, which comprises the steps of: inputting a frame of image and encoding; extracting a motion area of the image, estimating fault sensitivity of the motion area, and deciding an optimum flexible macro-block order coding mode; calculating the accumulated interframe differences of all macro-block positions, compulsorily carrying out intraframe refreshing on the macro block positions at the next frame when the accumulated interframe differences in the macro-block position in the motion area is larger than an appointed refreshing threshold, and accordingly, calculating the quantity and positions of the refreshed intraframe macro blocks of the motion area; forming a coding scheme of the next frame of image according to the flexible macro-block order coding mode and a refreshed macro-block calculation result; and repeating the steps until all the coding are completed. The video fault-tolerant coding method not only can meet the requirement of differentiated network transmission, but also can fully exert the fault-tolerant function of FMO (Flexible Macro-Block Order), thereby realizing better fault-tolerance effect with less computing resource consumption.

Description

A kind of video fault-tolerant coding method based on self-adaptation flexible macro-block order
Technical field
The present invention relates to the coding and decoding video field, be specifically related to a kind of video fault-tolerant coding method based on self-adaptation flexible macro-block order (FMO).
Background technology
Along with the fast development of the computer technology and the network communications technology, simple text message form can not satisfy people's demand, and more rich video information has been come into the various aspects of people's daily life gradually.Limited transmission bandwidth and memory space inevitable requirement are compressed the huge original video of data volume, so video coding and decoding technology and standard have become part indispensable in the multimedia application.Existing video encoding and decoding standard depends on the integrality of code stream very much.In case the viewing quality decline after mistake will cause video decode in transmission course, occurs, influence user's impression.Therefore, strengthening code stream and resist wrong ability in video coding process, promptly improve the fault-tolerance of code stream, is very necessary.
Flexible macro-block order FMO (Flexible Macroblock Ordering) is a kind of very effective new fault tolerant mechanism adopted of standard H.264/AVC.Macro block no longer must be that strictness is dispensed in the sheet according to its raster scan order in image.(Macroblock allocation map, MBAmap), a macro block can be dispensed in any one sheet group and go by macroblock allocation figure.The reason that FMO mechanism can be used in the video error tolerance mainly contains two aspects.First aspect is its network environment that is very suitable for existing differential transmission protection.Owing to can carry out the sheet set of dispense of arbitrary form to macro block, therefore important or fragile zone just can be dispensed on transmission with respect in the reliable sheet group, has strengthened the specific aim of protection, has improved the efficient of protection.On the other hand, FMO itself also possesses stronger fault tolerance.Because the macro block of losing may be surrounded by its other macro block of not losing of periphery, therefore utilize the pixel of peripheral macro block or the macro block that information can have efficient recovery to lose, very help the error resilience algorithms of decoder.
Though the existing method of utilizing FMO to carry out fault-tolerant encoding has obtained certain effect, but still the problem that exists mainly comprises: do not consider transmission characteristic; Need carry out encoding the second time or adopting the rate-distortion optimization algorithm, amount of calculation and structure are not suitable for practical application; Can only in the off-line coding, carry out the non real-time operation; When paying close attention to differential transmission, ignored the fault tolerance of performance FMO itself, perhaps opposite.
Summary of the invention
The invention provides a kind of video fault-tolerant coding method, can either satisfy the Network Transmission requirement of differentiation, can give full play to the fault tolerance of FMO itself again, realize that effective video is fault-tolerant based on self-adaptation flexible macro-block order (FMO); Simultaneously, because main computing information comes from encoding domain, i.e. the information that produces in the cataloged procedure, so computational efficiency is higher.
A kind of video fault-tolerant coding method based on self-adaptation flexible macro-block order (FMO) may further comprise the steps:
(1) input one two field picture and coding;
(2) moving region of the described image of extraction, the error sensitivity of estimation moving region; According to the error sensitivity of moving region, the flexible macro-block order coding mode that decision-making is optimum;
(3) calculate the accumulation frame difference of all macro block position, when the accumulation frame difference of macro block position in the moving region greater than appointment refresh threshold value the time, described macro block position is forced to frame refreshing when next frame, calculate the quantity and the position of the frame refreshing macro block of moving region thus;
(4) quantity and the position of the frame refreshing macro block that obtains of flexible macro-block order coding mode that obtains according to step (2) and step (3) form the encoding scheme of next frame image;
(5) repeating step (2)~(4) are all over until coding.
In the step (2), the moving region of the described image of described extraction comprises:
(2.1) the frame difference information of utilizing motion search to produce is carried out the initial motion detection to macro block, and the difference between incoming frame and the reference frame is considered as the initial motion macro block greater than the macro block of motion detection threshold;
Coordinate is (x, the initial motion sign M of macro block y) in the n two field picture InitialShown in (I):
M initial ( x , y , n ) = 1 , if sad mv 00 ( x , y , n ) > [ β ( n ) × sad avg ( n ) ] 0 , otherwise - - - ( I )
In the formula (I), sad Mv00The SAD that obtains when being 16 * 16 motion search (Sum of Absolute Difference) coded message at the zero motion vector place, the difference of reflection macro block between incoming frame and reference frame; Sad AvgRepresent all macro block sad of n two field picture Mv00Mean value; β (n) is the motion detection threshold parameter, [β (n) * sad Avg(n)] be motion detection threshold.
Sad when macro block Mv00During greater than motion detection threshold, initial motion sign M InitialBe 1, macro block is considered as the initial motion macro block; Otherwise, initial motion sign M InitialBe 0, macro block is considered as non-initial motion macro block.
Further, described motion detection threshold is along with the feature of not homotactic feature and same sequence different frame is dynamically adjusted, and wherein, motion detection threshold parameter beta (n) is suc as formula shown in (II):
Figure BSA00000242644000031
In the formula (II), σ FrameRepresent all macro block sad of n two field picture Mv00Standard deviation; K, σ 0, β H, β L, σ MA_HAnd σ MA_LBe the fixed value parameter;
(2.2) analyzes the macroblock encoding bit value, described initial motion macro block is carried out filtering, determine the motion macro block, and the rectangle of determining to contain the minimum of all motion macro blocks is the moving region:
Calculate the quantity N of initial motion macro block in four macro blocks of each initial motion macro block periphery Neb,
For N NebValue is 0 or 1 initial motion macro block,
Its final motion sign M FinalFor:
M final ( x , y , n ) = 1 , if B mb ( x , y , n ) ≥ [ λ filter × B avg ( n ) ] 0 , otherwise - - - ( III )
In the formula (III), B MbRepresent a macroblock encoding bit value, B AvgRepresent all N NebThe mean value of initial motion macroblock coding bit value greater than 1; λ FilterFor the fixed value parameter, for N NebBe 0 and 1 initial motion macro block, λ FilterBe made as 1.4 and 0.7 respectively.
When the macroblock encoding bit value greater than filtering threshold [λ Filter* B Avg(n)] time, final motion sign M FinalBe 1, be the motion macro block; Otherwise, final motion sign M FinalBe 0, be non-motion macro block.
For non-initial motion macro block and N NebValue is greater than other initial motion macro block of 1,
M final=M initial
Thus, obtain the M of all macro blocks FinalValue, all final motion sign M FinalValue is that 1 macro block is the motion macro block, and the rectangle of containing the minimum of all motion macro blocks is the moving region.
In the step (2), the error sensitivity of described moving region is meant that the moving region carries out the wrong difficulty of recovering in decoder, adopts and estimates as shown in the formula the calculating formula shown in (IV):
S MA(n)=p(n)×T(n)×σ mb(n)×σ frame(n) (IV)
In the formula (IV), p is the transmission packet loss of code stream, and more serious transmission packet loss can cause bigger mistake to recover difficulty; T is the texture complexity of moving region, and complicated texture can add the difficulty that serious mistake recovers; σ MbBe macro block movement differential in the moving region, the motion conditions difference between macro block is big more, and the difficulty that mistake is recovered also can be big more; σ FrameBe regional movement intensity, the overall movement intensity of moving region is big more with respect to background, and the difficulty that mistake is recovered also can big more (regional movement intensity σ FrameWith σ in the formula (II) FrameIdentical, can utilize before all macro block sad of n two field picture Mv00The result of calculation of standard deviation).Above-mentioned analytical factor can adapt to the algorithm characteristics of most of error recovery methods.The result is big more in the formula (IV), and the error sensitivity in account for motion zone is high more, and promptly wrong recovery difficulty is big more.
The texture complexity T of described moving region is the texture complexity t of all macro blocks in the moving region MbMean value, and the texture complexity t of a macro block MbBe calculated as follows shown in the formula (V):
t mb ( x , y , n ) = Σ i , j ∈ Ω ( x , y , n ) sad DC 44 ( i , j , x , y , n ) N Ω ( x , y , n ) - - - ( V )
In the formula (V), Ω represents 4 * 4 the set that the neighboring pixel of the left side and top is all complete, N ΩRepresent 4 * 4 quantity in this set, coordinate (i, j) one 4 * 4 positions in its place macro block of expression, sad DC44The SAD information of the intra-frame 4 * 4 DC mode that produces during for mode decision, it is the difference sum of 4 * 4 all composition pixels and neighboring pixel (pixel of the left side and top) average, reflect the otherness between these 4 * 4 each pixels of inside, difference large texture more is complicated more.
In the step (2), described error sensitivity according to the moving region, the process of the flexible macro-block order coding mode that decision-making is optimum is as follows:
The monolithic group coding is all used in non-moving region;
For the moving region, the error sensitivity S when the moving region MAGreater than the susceptibility threshold S that sets THThe time, adopt the checker board pattern of two sheet groups to encode; Error sensitivity S when the moving region MALess than the susceptibility threshold S that sets THThe time, the smooth pattern-coding of a sheet group of employing.
In the step (3), the accumulation frame difference of described macro block position is obtained by following formula (VI):
D acc ( x , y , n ) = Σ t = n 0 n p ( t ) × sad mv 00 ( x , y , t ) - - - ( VI )
In the formula (VI), n 0Expression macro block position (x, the image sequence when y) last time carrying out intraframe predictive coding number, n 0Be less than or equal to n; P is the transmission packet loss of code stream;
In the step (3), described appointment refresh threshold value D TH(n) be variate, calculate by following formula (VII);
D TH ( n ) = C IR σ frame ( n ) - - - ( VII )
In the formula (VII), C IRBe fixed value parameter, σ FrameBe regional movement intensity.Give more to refresh quantity for the big frame of exercise intensity, to obtain better adaptivity.
Among the present invention, not adopting FMO to encode for first two field picture, since second frame, all is the fault-tolerant encoding patterns that decide next frame by the analysis to former frame encoding domain information.Main computing information all comes from encoding domain, and just the information that is produced in the cataloged procedure has been avoided repeatedly coding, has effectively saved computational resource.
Among the present invention, when extracting the moving region, when taking 16 * 16 motion search at the coded message SAD at zero motion vector place (sad Mv00) carry out preliminary motion detection, because sad Mv00Can reflect the difference between incoming frame and the reference frame and can directly from most of searching algorithms, obtain, therefore can detect the moving region expeditiously; After having carried out preliminary motion detection, also adopt the macroblock coding bit value that the initial motion macro block is carried out filtering, reject the noise macro block in the initial motion macro block, remove remaining noise.Because the noise macro block often is in isolated positions, therefore,, determine the noise macro block by analyzing the encoding ratio paricular value size of isolated macroblock encoding bit value with respect to the primary motor area territory.Initial motion macro block behind the cancelling noise macro block is confirmed as the motion macro block.The present invention is based on video monitoring scene, and the moving region that it is most crucial (no matter being people or object) as the object of prioritised transmission and focused protection, and the rectangle of determining to contain the minimum of all motion macro blocks is the moving region.
Among the present invention, according to macro block movement differential σ in the texture complexity T of the transmission packet loss p of code stream, moving region, the moving region MbWith regional movement intensity σ FrameEtc. the error sensitivity of a plurality of factor assessments moving region, can adapt to the algorithm characteristics of most of error recovery methods.In addition, when the obtaining of texture information, the SAD information (sad of the intra-frame 4 * 4 DC mode that produces when utilizing mode decision DC44), improved computational efficiency; And, macro block movement differential σ in the texture complexity T of moving region and the moving region MbCalculating all be limited in the moving region, reduced the complexity of calculating.
Among the present invention, the selection of optimum FMO coding mode fully takes into account the difference of the moving region of the difference of motion and non-moving region and different error sensitivities.In various standard FMO types, the type 2 of two groups is fit to differentiation motion (prospect) and non-moving region (background) one type beyond doubt very much, is particularly suitable for the differential transmission protection to the image zones of different.Yet type 2 protection to the moving region in some cases is not enough, because it has only adopted a kind of coded system of smooth formula, and monolithic group coding moving region just.But the type has compression efficiency preferably; On the contrary, when adopting the Class1 of checkerboard type, fault-tolerant ability can significantly strengthen.But because the information share between the adjacent macroblocks significantly reduces, the compression efficiency of Class1 is relatively poor.Therefore, the present invention has adopted and has all used the monolithic group to improve compression efficiency to background.This is because the background area is not the key area of paying close attention on the one hand, be on the other hand because few moving background comparatively speaking and be not easy to be subjected to the influence of error of transmission.And in order between compression efficiency and fault-tolerant ability, to average out, according to the error sensitivity of prospect, with one or two sheet group prospect is encoded.FMO mechanism can provide a close friend's macro block distributed architecture to decoder among the present invention, therefore can alleviate mistake and spread.But FMO mechanism itself can not stop this mistake fully and spread, and therefore, the present invention further utilizes intra-frame macro block updating mechanism to go to strengthen its fault-tolerance, position that reasonable computation refreshes and quantity.
In sum, the video fault-tolerant coding method based on self-adaptation flexible macro-block order (FMO) of the present invention can either satisfy the Network Transmission requirement of differentiation, can give full play to the fault tolerance of FMO itself again, realizes that effective video is fault-tolerant; Simultaneously, because main computing information comes from encoding domain, i.e. the information that produces in the cataloged procedure, so computational efficiency is higher.
Description of drawings
Fig. 1 is a flow chart of the present invention;
Fig. 2 is the schematic flow sheet of the moving region of extraction image;
Fig. 3 is a self adaptation FMO coding mode decision-making schematic diagram;
Fig. 4 is the PSNR result of Salesman sequence;
Fig. 5 is the PSNR result of Container sequence;
Fig. 6 is the PSNR result of Hall sequence.
Embodiment
Describe the present invention in detail below in conjunction with embodiment and accompanying drawing, but the present invention is not limited to this.
As shown in Figure 1, a kind of video fault-tolerant coding method based on self-adaptation flexible macro-block order (FMO) may further comprise the steps:
(1) input one two field picture and coding;
Do not adopt FMO to encode for first two field picture, but adopt the normal encoding mode.
(2) moving region of the described image of extraction, the error sensitivity of estimation moving region; And according to the error sensitivity of moving region, the flexible macro-block order coding mode that decision-making is optimum;
Wherein, the extraction of the moving region of described image comprises:
(2.1) the frame difference information of utilizing motion search to produce is carried out the initial motion detection to macro block, and the difference between incoming frame and the reference frame is considered as the initial motion macro block greater than the macro block of motion detection threshold; Coordinate is (x, the initial motion sign M of macro block y) in the n two field picture InitialShown in (I):
M initial ( x , y , n ) = 1 , if sad mv 00 ( x , y , n ) > [ β ( n ) × sad avg ( n ) ] 0 , otherwise - - - ( I )
In the formula (I), sad Mv00In the coded message at zero motion vector place, the difference between reflection incoming frame and the reference frame can directly obtain from most of searching algorithms when being 16 * 16 motion search; Sad AvgRepresent all macro block sad of n two field picture Mv00Mean value; β (n) is the motion detection threshold parameter, [β (n) * sad Avg(n)] be motion detection threshold.
Sad when macro block Mv00During greater than motion detection threshold, initial motion sign M InitialBe 1, macro block is considered as the initial motion macro block; Otherwise, initial motion sign M InitialBe 0, macro block is considered as non-initial motion macro block.
Further, described motion detection threshold is along with the feature of not homotactic feature and same sequence different frame is dynamically adjusted, and wherein, motion detection threshold parameter beta (n) is suc as formula shown in (II):
Figure BSA00000242644000072
In the formula (II), σ FrameRepresent all macro block sad of n two field picture Mv00Standard deviation; K, σ 0, β H, β L, σ MA_HAnd σ MA_LBe the fixed value parameter;
(2.2) after having carried out preliminary motion detection, also to carry out filtering to the noise of remnants, some initial motion macro blocks are rejected away, therefore, utilize the macroblock encoding bit value, the initial motion macro block is carried out filtering, determine the motion macro block, and the rectangle of determining to contain the minimum of all motion macro blocks is the moving region:
The noise macro block often is in isolated positions, therefore, and the quantity N of initial motion macro block in four macro blocks of elder generation's each initial motion macro block periphery of calculating Neb, find the initial motion macro block that is in isolated positions to be isolated macro block, also promptly: N NebValue is 0 or 1 initial motion macro block; Further, if isolated macro block is not enough enough big with respect to the encoding ratio paricular value in primary motor area territory, isolated macro block just will be identified as the noise macro block.That is:
For N NebValue is 0 or 1 initial motion macro block,
Final motion sign M FinalFor:
M final ( x , y , n ) = 1 , if B mb ( x , y , n ) ≥ [ λ filter × B avg ( n ) ] 0 , otherwise - - - ( III )
In the formula (III), B MbRepresent a macroblock encoding bit value, B AvgRepresent all N NebThe mean value of initial motion macroblock coding bit value greater than 1; λ FilterFor the fixed value parameter, for N NebBe 0 and 1 initial motion macro block, λ FilterBe made as 1.4 and 0.7 respectively.
When the macroblock encoding bit value greater than filtering threshold [λ Filter* B Avg(n)] time, final motion sign M FinalBe 1, be the motion macro block; Otherwise, final motion sign M FinalBe 0, be noise macro block (non-motion macro block).
For non-initial motion macro block and N NebValue is greater than other initial motion macro block of 1,
M final=M initial
Thus, obtain the M of all macro blocks FinalValue, all final motion sign M FinalValue is that 1 macro block is the motion macro block, and the rectangle of containing the minimum of all motion macro blocks is defined as the moving region.
The all processes that extract for the moving region above-mentioned steps (2.1) and (2.2), as shown in Figure 2.In the present embodiment; based on video monitoring scene; the moving region that it is most crucial (no matter being people or object) is as the object of prioritised transmission and focused protection; finally have only a moving region to be extracted out and as prospect; all other macro blocks belong to background, and promptly moving region and prospect have identical implication.
In the step (2), the error sensitivity of described moving region is meant that the moving region carries out the wrong difficulty of recovering in decoder, adopts and estimates as shown in the formula the calculating formula shown in (IV):
S MA(n)=p(n)×T(n)×σ mb(n)×σ frame(n) (IV)
In the formula (IV), p is the transmission packet loss of code stream, and more serious transmission packet loss can cause bigger mistake to recover difficulty; T is the texture complexity of moving region, and complicated texture can add the difficulty that serious mistake recovers; σ MbBe macro block movement differential in the moving region, the motion conditions difference between macro block is big more, and the difficulty that mistake is recovered also can be big more; σ FrameBe regional movement intensity, the overall movement intensity of moving region is big more with respect to background, and the difficulty that mistake is recovered also can big more (regional movement intensity σ FrameWith σ in the formula (II) FrameIdentical, can utilize before all macro block sad of n two field picture Mv00The result of calculation of standard deviation).Above-mentioned analytical factor can adapt to the algorithm characteristics of most of error recovery methods.The result is big more in the formula (IV), and the error sensitivity in account for motion zone is high more, and promptly wrong recovery difficulty is big more.
The texture complexity T of described moving region is the texture complexity t of all macro blocks in the moving region MbMean value, and the texture complexity t of a macro block MbBe calculated as follows shown in the formula (V):
t mb ( x , y , n ) = Σ i , j ∈ Ω ( x , y , n ) sad DC 44 ( i , j , x , y , n ) N Ω ( x , y , n ) - - - ( V )
In the formula (V), Ω represents the left side and 4 * 4 complete set of top pixel, does not consider the unavailable minority divided block of the left side or top pixel, as is in the piece on the border of image or sheet; N ΩRepresent 4 * 4 quantity in this set, coordinate (i, j) one 4 * 4 positions in its place macro block of expression, sad DC44The SAD information of the intra-frame 4 * 4 DC mode that produces during for mode decision, it is the difference sum of 4 * 4 all composition pixels and neighboring pixel (left side and top) average, reflect the otherness between these 4 * 4 each pixels of inside, difference large texture more is complicated more.Be similar to σ Frame, σ MbBe a standard deviation, but its computer capacity is limited to moving region rather than entire image.T and σ MbThe calculating of the two all is to be limited in the moving region, to reduce the complexity of calculating.
In the step (2), described error sensitivity according to the moving region, the process of the flexible macro-block order coding mode that decision-making is optimum is as follows:
All use the monolithic group coding to improve compression efficiency to non-moving region (background), because the background area is not the key area of paying close attention to, and few moving background comparatively speaking and be not easy to be subjected to the influence of error of transmission;
For the moving region, according to the error sensitivity of moving region (prospect), prospect is encoded, so that between compression efficiency and fault-tolerant ability, average out with one or two sheet group.Specific implementation is based on the type 6 of FMO.Error sensitivity S when moving region (prospect) MAGreater than the susceptibility threshold S that sets THThe time, adopt the checker board pattern of two sheet groups to encode; Error sensitivity S when the moving region MALess than the susceptibility threshold S that sets THThe time, the smooth pattern-coding of a sheet group of employing, this moment is identical with the structure of the type 2 of two groups.These two kinds of FMO coding modes as shown in Figure 3.Arabic numerals among the figure are represented the sheet group number under each macro block, and the border of sheet group is represented with thick lines, the inner moving region for extracting of thick lines.
(3) calculate the accumulation frame difference of all macro block position, when the accumulation frame difference of macro block position in the moving region greater than appointment refresh threshold value the time, described macro block position is forced to frame refreshing when next frame, calculate the quantity and the position of the frame refreshing macro block of moving region thus;
For significantly not increasing amount of calculation, aforesaid sad Mv00Information is used continuing at this; Serious packet loss simultaneously, also needs to consider the factor of packet loss, because can cause spreading than grave error.The accumulation frame difference of described macro block position is obtained by following formula (VI):
D acc ( x , y , n ) = Σ t = n 0 n p ( t ) × sad mv 00 ( x , y , t ) - - - ( VI )
In the formula (VI), described appointment refresh threshold value D TH(n) be variate, by following n 0Expression macro block position (x, the image sequence when y) last time carrying out intraframe predictive coding number, n 0Be less than or equal to n; P is the transmission packet loss of code stream;
The described threshold value that refreshes is calculated by formula (VII);
D TH ( n ) = C IR σ frame ( n ) - - - ( VII )
In the formula (VII), C IRBe fixed value parameter, σ FrameBe regional movement intensity.Give more to refresh quantity for the big frame of exercise intensity, to obtain better adaptivity.
In order to save the bit resource, the frame refreshing macro block is only selected from even more important moving region.Intra-frame macro block updating mechanism can stop mistake and spread, and has stronger fault-tolerant ability, can further strengthen the fault-tolerant effect of FMO mechanism.
(4) result of calculation of the macro block updating that obtains of flexible macro-block order coding mode that obtains according to step (2) and step (3) forms the encoding scheme of next frame image;
(5) repeating step (2)~(4) are all over until coding.
Experiment effect: adopt the inventive method (AEFMO) that Salesman, Container and three kinds of standard video sequence of Hall are carried out fault-tolerant encoding.Compare with FMO1 method (the FMO Class1 of H.264/AVC stipulating in the standard) and FMO2 method (the FMO type of H.264/AVC stipulating in the standard 2) among the model standard reference model JM15.1 H.264/AVC.The experiment packet loss is 10%, fixed value parameter k, σ 0, β H, β L, σ MA_H, σ MA_L, S THAnd C IRBe made as 0.1,100,1.9,1.3,800,300,5 * 10 respectively 5With 2 * 10 5Fig. 4 is Y-PSNR (PSNR) experimental result of Salesman sequence, and curve 1,2 and 3 is represented the result of FMO1, FMO2 and three kinds of methods of AEFMO respectively.Fig. 5 is Y-PSNR (PSNR) experimental result of Container sequence, and curve 1,2 and 3 is represented the result of FMO1, FMO2 and three kinds of methods of AEFMO respectively.Fig. 6 is Y-PSNR (PSNR) experimental result of Hall sequence, and curve 1,2 and 3 is represented the result of FMO1, FMO2 and three kinds of methods of AEFMO respectively.Can see that from Fig. 4~6 the present invention is compared to the FMO1 0.03-3.18 decibel (dB) that can improve the quality,, obtain fault-tolerant preferably effect compared to the FMO2 0.23-5.10 decibel (dB) that can improve the quality.

Claims (8)

1. the video fault-tolerant coding method based on self-adaptation flexible macro-block order is characterized in that, may further comprise the steps:
(1) input one two field picture and coding;
(2) moving region of the described image of extraction, the error sensitivity of estimation moving region; According to the error sensitivity of moving region, the flexible macro-block order coding mode that decision-making is optimum;
(3) calculate the accumulation frame difference of all macro block position, when the accumulation frame difference of macro block position in the moving region greater than appointment refresh threshold value the time, described macro block position is forced to frame refreshing when next frame, calculate the quantity and the position of the frame refreshing macro block of moving region thus;
(4) quantity and the position of the frame refreshing macro block that obtains of flexible macro-block order coding mode that obtains according to step (2) and step (3) form the encoding scheme of next frame image;
(5) repeating step (2)~(4) are all over until coding.
2. video fault-tolerant coding method according to claim 1 is characterized in that, in the described step (2), the moving region of the described image of described extraction comprises:
(2.1) the frame difference information of utilizing motion search to produce is carried out the initial motion detection to macro block, and difference is considered as the initial motion macro block greater than the macro block of motion detection threshold between incoming frame and the reference frame;
(2.2) analyze the macroblock encoding bit value, described initial motion macro block is carried out filtering, determine the motion macro block, and the rectangle of determining to contain the minimum of all motion macro blocks is the moving region.
3. video fault-tolerant coding method according to claim 2 is characterized in that, in the described step (2.1), described motion detection threshold is dynamically adjusted along with the feature of not homotactic feature and same sequence different frame.
4. video fault-tolerant coding method according to claim 2 is characterized in that, in the described step (2.2), the process that described initial motion macro block is carried out filtering is as follows:
Calculate the quantity N of initial motion macro block in four macro blocks of each initial motion macro block periphery Neb
For N NebValue is 0 or 1 initial motion macro block, its final motion sign M FinalBe defined as:
M final ( x , y , n ) = 1 , if B mb ( x , y , n ) ≥ [ λ filter × B avg ( n ) ] 0 , otherwise - - - ( III )
In the formula (III), B MbRepresent a macroblock encoding bit value, B AvgRepresent all N NebThe mean value of initial motion macroblock coding bit value greater than 1; λ FilterFor the fixed value parameter, for N NebBe 0 and 1 initial motion macro block, λ FilterBe made as 1.4 and 0.7 respectively; When the macroblock encoding bit value greater than filtering threshold [λ Filter* B Avg(n)] time, final motion sign M FinalBe 1, be the motion macro block; Otherwise, final motion sign M FinalBe 0, be non-motion macro block;
For non-initial motion macro block and N NebValue is greater than other initial motion macro block of 1, M FinalAnd M InitialValue equate;
Thus, obtain the M of all macro blocks FinalValue, all M FinalValue is that 1 macro block is the motion macro block, and the rectangle of containing the minimum of all motion macro blocks is the moving region.
5. video fault-tolerant coding method according to claim 1 is characterized in that, in the described step (2), the error sensitivity of described moving region, adopt and estimate as shown in the formula the calculating formula shown in (IV):
S MA(n)=p(n)×T(n)×σ mb(n)×σ frame(n) (IV)
In the formula (IV), p is the transmission packet loss of code stream, and T is the texture complexity of moving region, σ MbBe macro block movement differential in the moving region, σ FrameBe regional movement intensity.
6. video fault-tolerant coding method according to claim 5 is characterized in that, the texture complexity T of described moving region is the texture complexity t of all macro blocks in the moving region MbMean value, and the texture complexity t of a macro block MbBe calculated as follows shown in the formula (V):
t mb ( x , y , n ) = Σ i , j ∈ Ω ( x , y , n ) sad DC 44 ( i , j , x , y , n ) N Ω ( x , y , n ) - - - ( V )
In the formula (V), Ω represents 4 * 4 the set that the neighboring pixel of the left side and top is complete, N ΩRepresent 4 * 4 quantity in this set, coordinate (i, j) one 4 * 4 positions in its place macro block of expression, sad DC44It is the difference sum of the neighboring pixel average of 4 * 4 all composition pixels and the left side and top.
7. video fault-tolerant coding method according to claim 1 is characterized in that, in the described step (2), and described error sensitivity according to the moving region, the process of the flexible macro-block order coding mode that decision-making is optimum is as follows:
The monolithic group coding is all used in non-moving region;
For the moving region, the error sensitivity S when the moving region MAGreater than the susceptibility threshold S that sets THThe time, adopt the checker board pattern of two sheet groups to encode; Error sensitivity S when the moving region MALess than the susceptibility threshold S that sets THThe time, the smooth pattern-coding of a sheet group of employing.
8. video fault-tolerant coding method according to claim 1 is characterized in that, and is described
In the step (3), the accumulation frame difference of described macro block position is obtained by following formula (VI):
D acc ( x , y , n ) = Σ t = n 0 n p ( t ) × sad mv 00 ( x , y , t ) - - - ( VI )
In the formula (VI),
n 0Expression macro block position (x, the image sequence when y) last time carrying out intraframe predictive coding number, n 0Be less than or equal to n; P is the transmission packet loss of code stream;
The described threshold value that refreshes is:
D TH ( n ) = C IR σ frame ( n ) - - - ( VII )
In the formula (VII), C IRBe fixed value parameter, σ FrameBe regional movement intensity.
CN 201010262087 2010-08-20 2010-08-20 Video fault-tolerant coding method based on self-adaptation flexible macro-block order Active CN101917627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010262087 CN101917627B (en) 2010-08-20 2010-08-20 Video fault-tolerant coding method based on self-adaptation flexible macro-block order

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010262087 CN101917627B (en) 2010-08-20 2010-08-20 Video fault-tolerant coding method based on self-adaptation flexible macro-block order

Publications (2)

Publication Number Publication Date
CN101917627A true CN101917627A (en) 2010-12-15
CN101917627B CN101917627B (en) 2012-01-25

Family

ID=43324994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010262087 Active CN101917627B (en) 2010-08-20 2010-08-20 Video fault-tolerant coding method based on self-adaptation flexible macro-block order

Country Status (1)

Country Link
CN (1) CN101917627B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025993A (en) * 2010-12-17 2011-04-20 深圳中兴力维技术有限公司 Video transmission method and system based on H.264
WO2012088811A1 (en) * 2010-12-28 2012-07-05 深圳市融创天下科技股份有限公司 Motion prediction method and system for inter frame encoding
CN102665082A (en) * 2012-04-26 2012-09-12 中山大学 Error concealment method applicable to video monitoring systems
CN103096054A (en) * 2011-11-04 2013-05-08 华为技术有限公司 Video image filtering processing method and device thereof
CN103339940A (en) * 2011-03-09 2013-10-02 株式会社东芝 Video image encoding method and video image decoding method
CN111654704A (en) * 2020-05-26 2020-09-11 新相微电子(上海)有限公司 Automatic multi-mode image compression control method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217671A (en) * 2008-01-09 2008-07-09 武汉大学 A method of flexible macro-block sequencing mode in self-adapting selection H.264 video standard

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217671A (en) * 2008-01-09 2008-07-09 武汉大学 A method of flexible macro-block sequencing mode in self-adapting selection H.264 video standard

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
《Advanced Communication Technology,2008.ICACT》 20080220 Rong Luo,et al A Hierarchical Scheme of Flexible Macroblock Ordering for ROI based H.264/AV Video Coding 全文 1-8 第3卷, 2 *
《Electrical and Computer Engineering ,2006.CCECE》 20060531 H. Kodikara Arachchi,et al UNEQUAL ERROR PROTECTION TECHNIQUE FOR ROI BASED H.264 VIDEO CODING 全文 1-8 , 2 *
《电视技术》 20090630 毛朴澄 等 基于H.264的一种新型自适应FMO选择策略 全文 1-8 第33卷, 第12期 2 *
《计算机工程与设计》 20091130 朱金秀 等 基于感兴趣区域的可伸缩性容错编码 全文 1-8 , 第21期 2 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025993A (en) * 2010-12-17 2011-04-20 深圳中兴力维技术有限公司 Video transmission method and system based on H.264
WO2012088811A1 (en) * 2010-12-28 2012-07-05 深圳市融创天下科技股份有限公司 Motion prediction method and system for inter frame encoding
US10511851B2 (en) 2011-03-09 2019-12-17 Kabushiki Kaisha Toshiba Image encoding and decoding method with merge flag and motion vectors
US11303918B2 (en) 2011-03-09 2022-04-12 Kabushiki Kaisha Toshiba Image encoding and decoding method with a merge flag and motion vectors
CN103339940A (en) * 2011-03-09 2013-10-02 株式会社东芝 Video image encoding method and video image decoding method
US11647219B2 (en) 2011-03-09 2023-05-09 Kabushiki Kaisha Toshiba Image encoding and decoding method with merge flag and motion vectors
CN103339940B (en) * 2011-03-09 2016-08-10 株式会社东芝 Dynamic image encoding method and dynamic image decoding method
US9900594B2 (en) 2011-03-09 2018-02-20 Kabushiki Kaisha Toshiba Image encoding and decoding method with predicted and representative motion information
US11323735B2 (en) 2011-03-09 2022-05-03 Kabushiki Kaisha Toshiba Image encoding and decoding method with a merge flag and motion vectors
US11303917B2 (en) 2011-03-09 2022-04-12 Kabushiki Kaisha Toshiba Image encoding and decoding method with a merge flag and motion vectors
US10841606B2 (en) 2011-03-09 2020-11-17 Kabushiki Kaisha Toshiba Image encoding method and image decoding method
US11290738B2 (en) 2011-03-09 2022-03-29 Kabushiki Kaisha Toshiba Image encoding and decoding method with a merge flag and motion vectors
CN103096054A (en) * 2011-11-04 2013-05-08 华为技术有限公司 Video image filtering processing method and device thereof
CN103096054B (en) * 2011-11-04 2015-07-08 华为技术有限公司 Video image filtering processing method and device thereof
CN102665082A (en) * 2012-04-26 2012-09-12 中山大学 Error concealment method applicable to video monitoring systems
CN111654704A (en) * 2020-05-26 2020-09-11 新相微电子(上海)有限公司 Automatic multi-mode image compression control method and device

Also Published As

Publication number Publication date
CN101917627B (en) 2012-01-25

Similar Documents

Publication Publication Date Title
CN101917627B (en) Video fault-tolerant coding method based on self-adaptation flexible macro-block order
CN104113754B (en) Method for high-performance video interframe coding based on time domain relevance and transcoder thereof
CN104378643B (en) A kind of 3D video depths image method for choosing frame inner forecast mode and system
CN108347612B (en) Monitoring video compression and reconstruction method based on visual attention mechanism
CN111355956B (en) Deep learning-based rate distortion optimization rapid decision system and method in HEVC intra-frame coding
CN102724554B (en) Scene-segmentation-based semantic watermark embedding method for video resource
CN101454990A (en) Video compression method
CN102497556B (en) A kind of scene change detection method, apparatus, equipment based on time-variation-degree
TW201127064A (en) System and method to process motion vectors of video data
WO2011110088A1 (en) Method and divece for video predictive encoding
US9883200B2 (en) Method of acquiring neighboring disparity vectors for multi-texture and multi-depth video
CN101478675A (en) Semantic events detection method and system in video
CN102420990B (en) Multi-view video-oriented fast coding method
CN103327327A (en) Selection method of inter-frame predictive coding units for HEVC
CN101014129A (en) Video data compression method
CN101754022A (en) Motion estimation method with low complexity
CN1269359C (en) Video error blanketing method based on motion vector extrapolation and motion vector search
CN114449262A (en) Video coding control method, device, equipment and storage medium
CN114202463A (en) Video super-resolution method and system for cloud fusion
CN101557519B (en) Multi-view video coding method
CN113079373A (en) Video coding method based on HEVC-SCC
CN105100799A (en) Method for reducing intraframe coding time delay in HEVC encoder
CN102592130B (en) Target identification system aimed at underwater microscopic video and video coding method thereof
CN101600111A (en) A kind of searching method of realizing secondary coding of self-adaptive interpolation filter
CN103517077A (en) Method and device for rapidly selecting prediction mode

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