Watermark embedding method and device based on H.264 compressed domain

27-10-2010 дата публикации
Номер:
CN0101873485A
Принадлежит: Hangzhou Hikvision Software Co Ltd
Контакты:
Номер заявки: 16-10-20098506
Дата заявки: 21-08-2009

[1]

Technical Field

[2]

The present application relates to the field of digital watermark technology, in particular to a H. 264-based domain watermark embedding method and device.

[3]

Background Art

[4]

Digital watermark technology is a digital watermark (also referred to as identification information) directly embedded into the digital carrier (including multimedia, file, software, etc.) in, but not affecting the original the use value of the digital carrier, and not easy to be people aware technology. Wherein digital watermarking also referred to as watermark information, carrier digital carriers also known as the watermark, the watermark by hiding the watermark information in the carrier, can achieve the confirmed content creators and purchaser, transmitting secret information, or the watermark is judged whether the carrier the purpose of tampering.

[5]

Compressed-domain digital watermark technology is a digital watermark in an, means that the loading in the compressed code stream of audio and video watermark information technology, in order to carry on the video of the judging copyright protection and integrity. H. 264 is a kind of advanced video compression standards, based on H. 264 in the standard compression loading in the video code stream of watermark information has become the focus of the study. Based on existing H. 264 digital watermark technology in a compressed domain, usually selected transform coefficients or residual data carrier as a watermark, the watermark information is embedded on the residual error in the data or the transform coefficients, the watermark carrier having a data amount is large and the influence on the quality of the compressed code stream in the great advantage of not.

[6]

The inventor in the prior art found in the course of the study, the above-mentioned selection residual data as a watermark or transform coefficients way of the carrier, because the residual data or conversion coefficient in some cases by pre-processing of the module, the module is pre-set in the fixed encoding and decoding information, so that the residual data or transformation coefficient black box processing, therefore in this case the residual difference is usually unable to the operation of the data or the transform coefficients, if the residual data or conversion system watermark information is loaded, will lead to the encoding and decoding is not matching, affect the video quality.

[7]

Content of the invention

[8]

The purpose of this embodiment is to provide a kind of H. 264 in a compressed domain watermark embedding method and device, in order to solve the existing residual data or transform coefficients during processing through the prefabricated module, as a watermark to the problem of embedding watermark information carrier.

[9]

In order to solve the above technical problem, the embodiment based on H. 264 provides a method for embedding watermark in a compressed domain, is realized like this:

[10]

Based on H. 264 a watermark embedding process in a compressed domain, including:

[11]

Obtaining a block of the Macroblock type, the number of block types for different block of corresponding to different;

[12]

A watermark pattern from the pre-set for each of the macroblocks selected in block of a intra-frame prediction mode;

[13]

The coding is set up in advance for each block of the strategy to the intra-frame prediction mode, to obtain coded data;

[14]

From the encoding data carrier extracting the watermark, the watermark information embedding the watermark carrier.

[15]

In order to solve the above technical problem, the embodiment based on H. 264 provides a watermark embedding device in a compressed domain, is realized like this:

[16]

A watermark embedding device, comprising:

[17]

Pre-set unit, for pre-setting the watermark pattern set and coding strategy;

[18]

Acquisition unit, for acquiring the type block of the Macroblock, the number of block types for different block of corresponding to different;

[19]

Selection unit, used for from a watermark pattern is set up in advance for each of the macroblocks selected in block of a intra-frame prediction mode;

[20]

Encoding unit, in accordance with the pre-set used for encoding of each block of the strategy to the intra-frame prediction mode, to obtain coded data;

[21]

Extraction unit, from the coded data is used for extracting watermark carrier;

[22]

Embedding unit, used for the watermark information is embedded in the extracted watermark carrier.

[23]

Visible, the application embodiment of a watermark pattern from the pre-set for each block of the Macroblock in a intra-frame prediction mode is selected, is set up in advance for each coding strategy of the intra-frame prediction mode block coding, the coded data is obtained, from the encoded data carrier extracting the watermark, the watermark information embedding extracted watermark carrier. The implementation of this application is based on the prediction mode example by frame obtaining watermark carrier, because the intra-frame prediction mode in the process of coding and decoding to obtain in real time, so the watermark information is embedded into the watermark carrier will not lead to the encoding and decoding the event of a mismatch, expanding the application range of the watermark is embedded.

[24]

Description of drawings

[25]

In order to more clearly illustrate the application or embodiment of the technological scheme in the prior art, will be to the embodiment or the prior art to be used in the description for the simple introduction of the Figure, it is obvious that, in the description below is only in this application with some of the embodiment described, to one of ordinary skill in the art is concerned, without paying creative the premise of work , can also be obtained according to these with other Figures.

[26]

The embodiment of Figure 1 is 1st flow chart of the application based on H. 264 in a compressed domain watermark embedding method;

[27]

Figure 2A is 2nd embodiment flowchart of the application based on H. 264 in a compressed domain watermark embedding method;

[28]

Figure 2B is macroblock a structure diagram of a luminance component 4 by 4 block type;

[29]

Figure 2C is a schematic diagram of a macro-block of each block after selecting the prediction mode in the frame;

[30]

Figure 2D is a schematic diagram of another of a Macroblock in each block after selecting the prediction mode in the frame;

[31]

Figure 2E is a schematic diagram of each of the final prediction mode of a block;

[32]

Figure 3 is an embodiment block diagram of the application based on H. 264 compressed domain watermark embedding device.

[33]

Mode of execution

[34]

The embodiment based on H. 264 provide a compressed domain watermark embedding method and device.

[35]

In order to make this technology more in the field of application is in geographic xie Ben technical scheme of the embodiment, and the embodiment of the application of the above-mentioned purpose, features and advantages will be more clearly understood, in conjuction with the embodiment of this application in the technical scheme for further detailed description.

[36]

See Figure 1, to the application based on H. 264 of the watermark embedding process in a compressed domain 1st embodiment flowchart:

[37]

Step 101: the type of the macro block obtained, corresponding to different block types for different number of a block.

[38]

Wherein the type block comprises: a block of luminance and chrominance frame block type type. Specific, brightness frame block type comprises a 4 by 4 block-type, 8 by 8 type and a block of 16 by 16 block type; chromameter frame block type includes 8 by 8 block of type.

[39]

Step 102: from a watermark pattern is set up in advance for each block of the Macroblock in a intra-frame prediction mode is selected.

[40]

Wherein the pre-set the watermark pattern set includes: H. 264 of the standard definition of the intra-frame prediction mode or a subset of frame prediction mode.

[41]

Step 103: coding strategy is set up in advance for each block of the intra-frame prediction mode coding, the coded data is obtained.

[42]

Specific, can be in accordance with the pre-set fixed-length coding strategy for each intra-frame prediction mode of a block fixed-length coding.

[43]

Step 104: extracting watermark from the encoded data carrier, and carrier embedded watermark is the watermark information.

[44]

Specific, can be in accordance with the following arbitrary a way of extracting watermark from the encoded data carrier: at least one extracting all within the Macroblock coding a block of data as a watermark carrier; extracting at least one macro block of the part of the encoding data as a watermark carrier; at least one extracting all within the Macroblock coded data of the block, and in addition at least one macro block of the part of the encoding data as a watermark carrier.

[45]

See Figure 2A, H. 264 for the application based on the watermark embedding process in a compressed domain 2nd embodiment flowchart, the implementation for block type example by frame 4 by 4 as an example for description:

[46]

Step 201: pre-set fixed-length coding strategy and extracting watermark strategy of the carrier.

[47]

Wherein extracting watermark carrier strategy comprises: at least one extracting all within the Macroblock coding a block of data as a watermark carrier; or extracting at least one macro block of the part of the encoding data as a watermark carrier; or extracting the at least one Macroblock coded data of all of the block, and in addition at least one macro block of the part of the encoding data as a watermark carrier.

[48]

Step 202: obtaining block of the Macroblock type, corresponding to different block types for different number of a block.

[49]

In H. 264 in the standard, and can be selected interframe prediction of intra-frame prediction encoding two kinds of technology, the basic unit is the Macroblock coding, a Macroblock luminance component size is 16 pixel by 16 pixel. Intra-frame prediction is to use a block of pixel point of the upper side or the left side of the block to obtain a coding technique. As for the luminance component, each Macroblock can be divided into 4 by 4 block-type, 16 by 16 type and a block of 8 by 8 block-type, but the chrominance component is concerned, each Macroblock only 8 by 8 block of type. Wherein 4 by 4, 16 by 16 and 8 by 8 means the size of each block, to Macroblock is 4 by 4 block-type, for example, it can be divided into 16 a 4 by 4 block of the luminance.

[50]

As shown in Figure 2B shown, for a luminance component 4 by 4 a structure diagram of a block of the Macroblock, wherein the digital label represents each one of the 4 by 4 the number of the block of the sequence.

[51]

Step 203 : to obtain each block of the intersection of the intra-frame prediction mode.

[52]

In H. 264 in the standard, the luminance component 4 by 4 type and a block of 8 by 8 block of type, definition 9 intra-frame prediction mode, are respectively: V (Vertical, vertical prediction), H (Horizontal, level prediction), DC (average prediction), DL (Diagonal   Down   Left, lower-left diagonal prediction), DR (Diagonal   Down   Right, lower-right diagonal prediction), VR (Vertical   Right, vertical right prediction), HD (Horizontal   Down, horizontal downward prediction), VL (Vertical   Left, vertical projections to the left), HU (Horizontal   Up, prediction upward). For luminance component 16 by 16 chrominance component type and a block of 8 by 8 block of type require the 4 frame prediction mode, are respectively V (Vertical, vertical prediction), H (Horizontal, level prediction), DC (average prediction), Plane (chessboard prediction).

[53]

Adopting the brightness component to the Macroblock 4 by 4 block-type, for example, a total of 16 block a, thus the 16 frames in prediction mode, each intra-frame prediction mode there may be at most 9 situation. However, because the 4 by 4 frame prediction mode is directional prediction, the 4 by 4 and the left side of the block to obtain the predicted value of adjacent pixel points, for example, intra-frame prediction mode Vertical need to use top-adjacent pixel point to obtain a predicted value, if in the code, the 4 by 4 block adjacent pixel points above position is not available (such as the top of the Image), for the 4 by 4 block, Vertical mode is not available, therefore, this step is obtained for each of the block to allow the intra-frame prediction mode, that is, obtaining 16 in each block of a block of the intra-frame prediction mode allowed, then from to allow the intra-frame prediction mode selection 16 intra-prediction mode of a block of the intersection.

[54]

Step 204: choose from in intersection 2 power in the frames of the prediction mode watermark mode set.

[55]

Consider the subsequent coding process, if in intersection number of the intra-frame prediction mode is not 2 power, then it is also necessary to remove excess intra-frame prediction mode, in order to get by the 2 frames of a power prediction mode in the watermark mode set. From this we can know, the watermark pattern set is H. 264 standards require all of the intra-frame prediction mode or a subset thereof, each Macroblock can be different from the watermark pattern set.

[56]

Assuming that the step of obtaining a watermark pattern in which the intra-frame prediction mode of DC, respectively, H, V and DR.

[57]

Step 205: from a watermark pattern is set up in advance for each block of the Macroblock in a intra-frame prediction mode is selected.

[58]

See Figure 2C, assumed to be in accordance with step 204 combines the watermark pattern obtained in each of the macro block after selecting the prediction mode in the frame a schematic diagram.

[59]

Step 206 : in accordance with the pre-set fixed-length coding strategy for each intra-frame prediction mode of a block fixed-length coding, to obtain coded data.

[60]

On the watermark pattern comprising four intra-frame prediction mode, so can choose to 2 bit fixed-length coding strategy, it is assumed that the strategy defined in the: corresponding to mode of DC encoded as 00, V corresponding to the coding of mode 01, H mode to a corresponding coding for the 10, DR corresponding to the mode of coding of the 11. Combining OZP 2B each in the order of the block, and Figure 2C each block in the intra-frame prediction mode can be known, for the encoded data to the: 00100001110111011011000110010000.

[61]

Step 207: extracting watermark from the encoded data carrier.

[62]

Wherein the whole carrier can be watermark coded data of the Macroblock, or part of the coding data, can be two or more coded data of Macroblock, can be an integer number of the Macroblock coded data of the Macroblock with the part of the coded data, can also be part of a plurality of Macroblock coding data, in accordance with the specific application of the strategy can be set up in advance to extract, for the different watermark algorithm, will be different selection of a strategy. For example, for a block of each Macroblock 0 and a block of 8 encoding data as a watermark carrier, with reference to Figure 2C, , watermark carrier is 0010.

[63]

Step 208: carrier embedded watermark is the watermark information.

[64]

Watermark insertion method are many, the embodiment cited a description of several examples.

[65]

Method a:

[66]

Each Macroblock is embedded into the 2-bit information, in order to block 0 and a block of 8 coded data of the watermark carrier, with reference to Figure 2C, watermark carrier is 0010. Embedding method can be as follows:

[67]

Assumptions a0 a1 a2 a3 to watermark carrier, x0 x1 for the watermark information, XOR operation of said,

[68]

If Change not a0, a2 value;

[69]

If Change a0 value (that is, 0 into 1, 1 into 0);

[70]

If Does not change a1, a3 value;

[71]

If Change a1 value (that is, 0 into 1, 1 into 0).

[72]

According to the above-mentioned method, the pattern 2C in embedding x0 x1 = 11 watermark information of two bits, then the watermark carrier 0010 into the embedding watermark after 0110, process is as follows:

[73]

a0[!CirclePlus!]a2=0[!CirclePlus!]1=1=x0,a0 unchanged, is still 0

[74]

a1[!CirclePlus!]a3=0[!CirclePlus!]0=0[!NotEqual!]x1,a1 change, from 0 into 1

[75]

After embedding of watermark information, the load of the encoded data obtained: 01100001110111011011000110010000.

[76]

Method b:

[77]

Each Macroblock is embedded into the 1-bit information, in order to a Macroblock encoding data as a watermark carrier. Embedding method can be as follows: in statistical watermark carrier 0, 1 number, are respectively recorded as N0, N1, watermark information is x0,

[78]

If x0 = 0, and N0 ≥ N1, is not variable;

[79]

If x0 = 0, and N0 <N1, in the watermark vector is 0 to 1, 1 to 0;

[80]

If x0 = 1, and N0 ≥ N1, in the watermark vector is 0 to 1, 1 to 0;

[81]

If x0 = 1, and N0 <N1, is not variable;

[82]

According to the above-mentioned method, the pattern 2C embedded in the 1-bit watermark information x0 = 1, because N0 = 18, N1 = 14, N0> N1, need in the watermark vector 0 into 1, 1 into 0. After embedding the watermark, the load of the encoded data obtained: 11011110001000100100111001101111.

[83]

Method three:

[84]

Every two macroblock embedded 2-bit information, the part of the to two macroblocks for encoding data as a watermark carrier, are respectively in section 1 block of Macroblock 0 and 2 block of Macroblock 0 mode coding data as a watermark carrier. Assumptions Figure 2C is sequential, plan and of section 1 of a Macroblock, Figure 2D in section 2 of a Macroblock, combined OZP 2B each block in 2D each block in the intra-frame prediction mode can know, paragraph 2 mode coding of Macroblock data for 10100010010111111000010000010110. Embedding method can be as follows:

[85]

Assumptions a0 a1 a2 a3 to watermark carrier, x0 x1 for the watermark information, Said exclusive-or operation. Wherein a0 a1 section 1 block of Macroblock 0 coding data, a2 a3 section 2 block of Macroblock 0 the coded data,

[86]

If Change not a0, a2 value;

[87]

If Change a0 value (that is, 0 into 1, 1 into 0);

[88]

If Change not a1, a3 value;

[89]

If Change a1 value (that is, 0 into 1, 1 into 0);

[90]

According to the above-mentioned method, a0 a1 = 00, a2 a3 = 10, if the embedding watermark information is x0 x1 = 11, after embedding of watermark information, the watermark carrier into: 0110, at the same time section 1 a to load encoded data of the Macroblock 01100001110111011011000110010000 ; section 2 the load of the Macroblock coded data has not changed, is still 10100010010111111000010000010110.

[91]

Step 209: the load in accordance with the encoding strategy for reverse decoding encoded data, the embedded watermark information is obtained after the final intra-frame prediction mode of a block.

[92]

After embedding watermark information encoded data of the encoded data for a load, the load coding data in accordance with the same coding strategy, decoding mode, to obtain the final intra-frame prediction mode, the final prediction mode that is, each of the 4 by 4 in the encoding of the block of intra-frame prediction mode. For example according to the aforesaid step 208 of the in the first method, the watermark information in the loading x0 x1 = 11 the rear, to load encoded data obtained 01100001110111011011000110010000, in accordance with step 204 the strategy defined in, after the mode decoding, obtaining the final prediction mode as shown in Figure 2E illustrated.

[93]

Based on H. 264 with the application domain watermark embedding method corresponding to the embodiment, based on this application also provides H. 264 compressed domain of watermark embedding apparatus of the embodiment.

[94]

See Figure 3, for the application based on H. 264 compressed domain watermark embedding apparatus of the embodiment of the block diagram.

[95]

The device comprises: the preset unit 310, obtaining unit 320, the selection unit 330, the coding unit 340, extraction unit 350 and embedding unit 360.

[96]

Wherein the preset unit 310, used for pre-setting the watermark pattern set and coding strategy;

[97]

Acquisition unit 320, block used for obtaining the type of the Macroblock, the number of block types for different block of corresponding to different;

[98]

Selection unit 330, for from a watermark pattern is set up in advance for each of the macroblocks selected in block of a intra-frame prediction mode;

[99]

The coding unit 340, in accordance with the pre-set used for encoding of each block of the strategy to the intra-frame prediction mode, to obtain coded data;

[100]

Extraction unit 350, from the coded data is used for extracting watermark carrier;

[101]

Embedding unit 360, used for the watermark information is embedded in the extracted watermark carrier.

[102]

Specific, preset unit 310 can include (Figure 3 not shown in): intersection obtaining unit, used for obtaining each of the block allows the intersection of the intra-frame prediction mode, to said intra prediction mode H. 264 of the standard definition of in-frame prediction mode; mode set selection unit, for selecting in intersection from the 2 power in the frames of the prediction mode the watermark mode set.

[103]

The coding unit 340 can include (Figure 3 not shown in): fixed-length encoding unit, in accordance with the pre-set used for encoding of the fixed length of each block of the strategy to the intra-frame prediction mode to fixed-length coding.

[104]

Extraction unit 350 may include at least one the following unit (fig. 3, not shown in): 1st extraction unit, at least one is used for extracting all within the Macroblock coding a block of data as a watermark carrier; 2nd extracting unit, for extracting at least one macro block of the part of the encoding data as a watermark carrier; 3rd extraction unit, at least one is used for extracting all within the Macroblock coded data of the block, and in addition at least one macro block of the part of the encoding data as a watermark carrier.

[105]

Furthermore, the device can also include (Figure 3 not shown in): decoding unit, according to the encoding strategy used for the load to reverse decoding encoded data, the embedded watermark information is obtained after the final intra-frame prediction mode of a block, the load for the embedded watermark information encoded data of the encoded data.

[106]

Through the above description of the implementation of the known manner, the embodiment of this application from a watermark pattern is set up in advance for each block of the Macroblock in a intra-frame prediction mode is selected, is set up in advance for each coding strategy of the intra-frame prediction mode block coding, the coded data is obtained, from the encoded data carrier extracting the watermark, the watermark information embedding extracted watermark carrier. The implementation of this application is based on the prediction mode example by frame obtaining watermark carrier, because the intra-frame prediction mode in the process of coding and decoding to obtain in real time, so the watermark information is embedded into the watermark carrier will not lead to the encoding and decoding the event of a mismatch, expanding the application range of the watermark is embedded.

[107]

Through the above description of the embodiment of the known, those of skill in the art can clearly understand that this application can be by software plus the necessary universal hardware platform of the way to realize. Based on this understanding, the technical scheme of this application or essentially contribute to the prior art can be in the part of the form of software products, the computer software products may be stored in a storage medium, such as ROM/RAM, diskette, optical disk, which comprises a plurality of instruction is used for the computer equipment (can be a personal computer, server, or network equipment, and other) the implementation of the various embodiments or applications of the embodiment of the method of the certain part.

[108]

In the description of each embodiment described actually zoom unrestrictedly by adopting a progressive manner, between each embodiment is the same as the similar part can refer to each other, the focus in each embodiment other with the difference of the embodiment of. In particular, the case of the embodiment of the system, similar to the embodiment of the method, therefore, described is relatively simple, refer to the relevant part of the embodiment of that method can be.

[109]

This application can be used in a variety of general or special computing system environments or configurations. For example: a personal computer, server computer, hand-held apparatus or the portable apparatus, flat-plate type device, multi-processor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PC, small-sized computer, a large-scale computer, including the above-mentioned any system or device, the distributed computing environment.

[110]

The applications may be carried out by the computer in computer-executable instructions described in the general context, such as the program module. Generally, the program module comprises performing a specific task or implement particular abstract data types of routine, program, object, component, data structure, etc.. In the distributed computing environment may also be in the practice of the application, in these distributed computing environment, the which is connected through the communication network to a remote processing device to perform tasks. In the distributed computing environment, program includes a storage module may be located in both local and remote devices, in the computer storage medium.

[111]

Although the description of the embodiment of this application, one of ordinary skill in the art know, the application of many deformation and change without from the spirit of this application, that of the rights attached to these request includes a deformation and change without from the spirit of this application.



[1]

The embodiment of the invention discloses watermark embedding method and device based on an H.264 compressed domain. The method comprises the steps of: obtaining frame block types of macro blocks, wherein different frame block types correspond to different quantities of frame blocks; selecting an intraframe prediction mode for each frame block in the macro blocks from a preset watermark mode set; coding the intraframe prediction mode of each frame block according to the preset coding strategy to obtain coding data; and extracting a watermark carrier from the coding data and embedding watermark information into the watermark carrier. The embodiment of the invention obtains the watermark carrier based on the intraframe prediction modes; and because the intraframe prediction modes are obtained in real time during coding and decoding, the watermark information is embedded into the watermark carrier without causing mismatching of the coding and the decoding, which expands the application range of the watermark embedding.



1. Based on H. 264 a watermark embedding process in a compressed domain, characterized in that comprises:

Obtaining a block of the Macroblock type, the number of block types for different block of corresponding to different;

A watermark pattern from the pre-set for each of the macroblocks selected in block of a intra-frame prediction mode;

The coding is set up in advance for each block of the strategy to the intra-frame prediction mode, to obtain coded data;

From the encoding data carrier extracting the watermark, the watermark information embedding the watermark carrier.

2. Method according to Claim 1, characterized in that the frame block types include: brightness and chromaticity frame block typeframe block type , wherein

The brightness frame block type comprises a 4 by 4 block-type, 8 by 8 type and a block of 16 by 16 block type;

The chromaticity including frame block type 8 by 8 block of type.

3. Method according to Claim 1, characterized in that the pre-set the watermark pattern set includes: H. 264 of the standard definition of the intra-frame prediction mode or a subset of frame prediction mode.

4. Method according to Claim 3, characterized in that the pre-set the watermark pattern set includes:

To obtain each block of the intersection of the intra-frame prediction mode;

In intersection selected from the 2 power in the frames of the prediction mode the watermark mode set.

5. Method according to Claim 1, characterized in that the coding is set up in advance for each block of the strategy to the intra-frame prediction mode is encoded in particular to:

In accordance with the pre-set fixed-length coding of each block of the strategy to the intra-frame prediction mode to fixed-length coding.

6. Method according to Claim 1, characterized in that extracting the watermark encoding states from states in the data carrier comprises:

Extracting at least one macro-block of the encoding of all of the data as a watermark carrier; or

Extracting at least one macro block of the part of the encoding data as a watermark carrier; or

Extracting at least one macro block of the coded data of all, and in addition at least one macro block of the part of the encoding data as a watermark carrier.

7. Method according to Claim 1, characterized in that the watermark information is embedded into the encoded data of the encoded data to the load, also includes:

In accordance with the load of the encoding strategy to reverse decoding encoded data, the embedded watermark information is obtained after the final intra-frame prediction mode of a block.

8. A watermark embedding device, characterized in that comprises:

Pre-set unit, for pre-setting the watermark pattern set and coding strategy;

Acquisition unit, for acquiring the type block of the Macroblock, the number of block types for different block of corresponding to different;

Selection unit, used for from a watermark pattern is set up in advance for each of the macroblocks selected in block of a intra-frame prediction mode;

Encoding unit, in accordance with the pre-set used for encoding of each block of the strategy to the intra-frame prediction mode, to obtain coded data;

Extraction unit, from the coded data is used for extracting watermark carrier;

Embedding unit, used for the watermark information is embedded in the extracted watermark carrier.

9. Device according to Claim 8, characterized in that the pre-set unit comprises:

Intersection obtaining unit, used for obtaining each of the block allows the intersection of the intra-frame prediction mode, the H. 264 frame prediction mode is the intra-frame prediction mode standard definition;

Mode set selection unit, for selecting in intersection from the 2 power in the frames of the prediction mode the watermark mode set.

10. Device according to Claim 8, characterized in that the encoding unit comprises:

Fixed-length encoding unit, in accordance with the pre-set used for encoding of the fixed length of each block of the strategy to the intra-frame prediction mode to fixed-length coding.

11. Device according to Claim 8, characterized in that the extraction unit includes at least one of the following unit:

1st extraction unit, at least one is used for extracting all within the Macroblock coding a block of data as a watermark carrier;

2nd extracting unit, for extracting at least one macro block of the part of the encoding data as a watermark carrier;

3rd extraction unit, at least one is used for extracting all within the Macroblock coded data of the block, and in addition at least one macro block of the part of the encoding data as a watermark carrier.

12. Device according to Claim 8, characterized in that it also comprises:

Decoding unit, according to the encoding strategy used for the load to reverse decoding encoded data, the embedded watermark information is obtained after the final intra-frame prediction mode of a block, the load for the embedded watermark information encoded data of the encoded data.