Efficient H264 video steganography method

By selecting the embedding path with the least distortion cost for macroblock semantic layer analysis and STC encoding of H264 video encoding, directly extracting and modifying the motion vector residual for information embedding, the problems of low efficiency and small steganography capacity in the prior art are solved. It realizes efficient information embedding and extraction.

CN119011868AActive Publication Date: 2024-11-22FUJIAN NORCA TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411080748.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-11-22
Estimated Expiration
2044-08-08

AI Technical Summary

Technical Problem

Existing video steganography algorithms based on motion vectors are inefficient and have small steganography capacity, which cannot meet users' needs for hidden communications.

Method used

By analyzing the macroblock semantic layer of H264 video encoding, the motion vector residual is directly extracted and its value is modified for information embedding, and combined with STC encoding, the embedding path with the least distortion cost is selected to realize information embedding and extraction.

Benefits of technology

It realizes efficient information embedding and extraction, improves the steganographic capacity, and the embedding process does not require complete decoding and re-encoding, which has good practicality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011868A_ABST
    Figure CN119011868A_ABST
Patent Text Reader

Abstract

The invention discloses an efficient H264 video steganography method which is used for embedding information to be hidden into an original video. Comprising the following steps: reading an original video code stream, and when an NAL unit is of a PNAL type or a BNAL type, selecting a carrier sequence C from available macro blocks for slice in the NAL unit by adopting a carrier disruption and construction strategy; storing the least significant bit information of all carriers as a sequence G in sequence; an STC parity check matrix is constructed, an embedding path G'with the minimum distortion cost is calculated through STC coding, the carrier sequence C is modified according to G ', and a secret carrier sequence C' is obtained; extracting macro blocks from the carrier sequence C'in sequence to obtain a sequence Cover ', modifying motion vector residual errors of the macro blocks in slice, performing entropy coding, and writing back a code stream to complete slice coding; and outputting the video file until the to-be-hidden binary sequence S is embedded completely. According to the method, the secret information needing steganography can be safely, efficiently, completely and consistently embedded and extracted, the good embedding capacity is achieved, and the requirement of a user for secret communication can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an efficient H264 video steganography method. Background Art

[0002] Digital video, as a widely used medium in cyberspace, is a good carrier for secret information and is often used to build covert communications. Among them, video steganography algorithms based on motion vectors have been widely studied, but most existing steganography algorithms require the original carrier file to be fully decoded and then inserted into the steganography method after a series of encoding processes such as intra-frame prediction, inter-frame prediction, DCT transformation, quantization and entropy coding. However, this implementation method is inefficient and most methods also have disadvantages such as small steganographic capacity. Summary of the invention

[0003] The purpose of the present invention is to provide an efficient H264 video steganography method, which can safely and efficiently embed and extract the secret information to be steganographic completely and consistently, has good embedding capacity, and can meet the user's needs for secret communication.

[0004] In order to achieve the above object, the solution of the present invention is:

[0005] An efficient H264 video steganography method is used to embed the information to be hidden into the original video; it includes the following steps:

[0006] Step A1, obtaining a binary sequence S to be hidden based on the information to be hidden;

[0007] Step A2, reading the original video bitstream, when the NAL unit is of P_NAL type or B_NAL type, using the carrier shuffle and construction strategy for the slice therein to select a carrier sequence C from the available macroblocks; and saving the least significant bit information of all carriers in sequence as a sequence G;

[0008] Step A3, constructing an STC parity check matrix, calculating the embedding path G′ with the minimum distortion cost through STC coding, modifying the carrier sequence C according to G′, and obtaining the encrypted carrier sequence C′;

[0009] Step A4, extracting macroblocks from the carrier sequence C' in order to obtain a sequence Cover', and modifying the motion vector residual of the macroblock in the slice, performing entropy coding and writing it back to the bitstream to complete the encoding of the slice;

[0010] Step A5, determining whether the NAL unit where the slice is located has been processed, if it has been processed, transferring to the next NAL unit, otherwise transferring to the next slice; until the embedding of the binary sequence S to be hidden is completed, the video file is output.

[0011] The specific content of the above step A1 is:

[0012] Step A11, encrypt the information to be hidden and then convert it into a binary sequence M=(m 1 ,m 2 ,...,m le ), le is the length of the secret information binary sequence;

[0013] Step A12, encrypt le and convert it into 32-bit binary form to obtain the sequence L=(l 1 ,l 2 ,...,l 32 );

[0014] Step A13, merging the sequences L and M to obtain the hidden binary sequence S=L+M=(l 1 ,l 2 ,...,l 32 ,m 1 ,m 2 ,...,m le ), that is, S = (s 1 ,s 2 ,...,s 32+le ).

[0015] In the above step A2, for a NAL unit of a P_NAL type or a B_NAL type, the NAL header and the slice header are skipped, and the type of the slice data is determined to be a P slice or a B slice, and a carrier scrambling and construction strategy is adopted for it, otherwise the slice is skipped.

[0016] In the above step A2, the specific content of selecting a carrier sequence from available macroblocks using the carrier shuffle and construction strategy is:

[0017] Starting from the first macroblock in the slice, except for 16×16 partitioned macroblocks, non-P macroblocks or non-B macroblocks, extract the component with the larger absolute value of the vertical component MVDx and the horizontal component MVDy of a motion vector residual from each macroblock in turn until the last macroblock in the slice;

[0018] Then start again from the first macroblock in the slice and repeat the above operation until all components are extracted. During this process, if there is no extractable component in the macroblock, skip the macroblock.

[0019] The extracted component sequence is the vector sequence C.

[0020] In the above step A3, the method of constructing the STC parity check matrix is ​​based on the embedding rate α and the basic matrix Establish STC parity check matrix HSTC ; Among them, the embedding rate α of STC coding is affected by the basic matrix In w decision, when When is an integer, Otherwise, w has two values in Indicates floor operation;

[0021]

[0022] in, The value is 0 or 1.

[0023] In the above step A3, the embedding path G′ with the minimum distortion cost is calculated by STC coding, and the carrier sequence C is modified according to G′ to obtain the encrypted carrier sequence C′; specifically, the following steps are included:

[0024] Step A31: count the number of the binary sequence S to be hidden m Starting from the bit, extract bits as the secret information embedded in STC, and STC is used to construct the embedding path G′ that minimizes the overall steganalysis embedding cost;

[0025] Step A32, compare sequence G=(lsb 1 ,lsb 2 ,...,lsb n ) and G′=(lsb 1 ′,lsb 2 ′,...,lsb n ′), if lsb i ≠lsb i ', then the vector sequence C = (c 1 ,c 2 ,...,c n ) in the corresponding position of the embedding vector c i Modify to get c ni ′, otherwise no modification is required, let c ni ′=c i ; Finally, the dense vector sequence C′=(c 1 ′,c 2 ′,...,c n ′); where lsb 1 Indicates c 1 The least significant bit value, c 1 Indicates the component with the larger absolute value between the vertical and horizontal components of the motion vector residual.

[0026] In the above step A32, the embedding carrier c i The way to make the modification is,

[0027] If MVDX i !=MVDY i And c i is a positive odd number or a negative even number, then c i Subtract 1, and we get c i ′;

[0028] If MVDX i !=MVDY i And c i is a positive even number or a negative odd number, then c i Add 1, and we get c i ′;

[0029] If MVDX i ==MVDY i And c i If c is a positive number, i Add 1, and we get c i ′;

[0030] If MVDX i ==MVDY i And c i If c is negative, i Subtract 1, and we get c i ′;

[0031] Among them, MVDx 1 and MVDy 1 Represents the vertical and horizontal components of the motion vector residual of the macroblock respectively.

[0032] The specific process of the above step A4 is:

[0033] Step A41, according to the sequence number of the macroblock in FG, first extract the elements of the first macroblock from the sequence C′ in order from left to right until the end of the sequence; then extract the elements of the second macroblock from the C′ sequence in order from left to right; and so on until the last macroblock, and record the extracted element sequence as Cover′; wherein FG is the sequence number corresponding to the selection of macroblocks to construct the sequence C;

[0034] Step A42, according to the Cover′ sequence, modify the components with larger absolute values ​​of the vertical component MVDx and the horizontal component MVDy of the motion vector residual in all macroblocks in the slice. After the modification is completed, the motion vector residual is re-encoded by entropy and written back to the bitstream to complete the encoding of the slice.

[0035] After adopting the above scheme, the beneficial effects of the present invention include:

[0036] (1) The present invention analyzes the semantic layer of H264-encoded macroblocks, uses an entropy decoding method to directly extract motion vector residuals from macroblocks, and modifies their values ​​to achieve information embedding. After embedding, the information is entropy-encoded and written back to the bitstream. The embedding process does not require complete decoding and re-encoding, and has high embedding efficiency and good practicality.

[0037] (2) The present invention analyzes the distortion that may be caused by modifying the motion vector residual of macroblocks in different segmentation forms, designs a scrambling strategy for the motion vector residual as a steganographic carrier and an embedding distortion cost function for the scrambled carrier, and selects the embedding path with the minimum distortion cost through STC coding, thereby achieving better embedding capacity. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is the NALU parsing structure diagram;

[0039] The meanings of the parameters are as follows:

[0040] VCL: Video Coding Layer, video coding layer

[0041] NAL: Network Abstract Layer, network abstraction layer

[0042] SPS: seq_parameter_set, sequence parameter set

[0043] PPS: pic_parameter_set, picture parameter set

[0044] IDR_NAL: NAL of IDR frame

[0045] I_NAL: NAL of I frame

[0046] P_NAL: NAL of P frame

[0047] B_NAL: B frame NAL

[0048] slice_header: slice header information

[0049] slcide_data: strip content details

[0050] macroblock: macroblock

[0051] marcoblock_layer(): macroblock layer data

[0052] MVD: Motion Vector Residual

[0053] mb_type: macroblock type

[0054] mb_pred: macroblock prediction information

[0055] Intra: Inter-frame prediction

[0056] Inter: Inter-frame prediction

[0057] modes: prediction mode

[0058] Reference Frames

[0059] MotionVectors: Motion vector residuals

[0060] CBP: Coded Block Mode

[0061] QP: Quantization Parameter

[0062] CodedData: pixel residual coded data

[0063] Figure 2 It is the H264 macroblock and sub-macroblock division;

[0064] Figure 3 It is the secret information embedded in the flow chart;

[0065] Figure 4 It is the secret information extraction flow chart. DETAILED DESCRIPTION

[0066] The technical solutions and beneficial effects of the present invention will be described in detail below with reference to the accompanying drawings.

[0067] The present invention provides an efficient H264 video steganography method for embedding information to be hidden into an original video; the method comprises the following steps:

[0068] Step A1, obtaining a binary sequence S to be hidden based on the information to be hidden;

[0069] Step A2, reading the original video bitstream, when the NAL unit is of P_NAL type or B_NAL type, using the carrier shuffle and construction strategy for the slice therein to select a carrier sequence C from the available macroblocks; and saving the least significant bit information of all carriers in sequence as a sequence G;

[0070] Step A3, constructing an STC parity check matrix, calculating the embedding path G′ with the minimum distortion cost through STC coding, modifying the carrier sequence C according to G′, and obtaining the encrypted carrier sequence C′;

[0071] Step A4, extracting macroblocks from the carrier sequence C' in order to obtain a sequence Cover', and modifying the motion vector residual of the macroblock in the slice, performing entropy coding and writing it back to the bitstream to complete the encoding of the slice;

[0072] Step A5, determining whether the NAL unit where the slice is located has been processed, if it has been processed, transferring to the next NAL unit, otherwise transferring to the next slice; until the embedding of the binary sequence S to be hidden is completed, the video file is output.

[0073] According to the technical solution provided by the present invention, only the residual entropy decoded value of the motion vector in the H264 code stream is used as the embedding carrier, without completely decoding and re-encoding the code stream, so that efficient information embedding and extraction can be achieved, and the embedding capacity can be improved by combining the steganographic code STC. The specific embedding and extraction steps are described as follows:

[0074] 1. Information embedding process

[0075] (1) Preprocessing of the information to be hidden. After encrypting the secret information to be hidden, convert it into a binary sequence M = (m 1 ,m 2 ,...,m le ), le is the length of the secret information binary sequence; then le is encrypted and converted into 32-bit binary form to obtain the sequence L = (l 1 ,l 2 ,...,l 32 ). Combine the sequences L and M to obtain the hidden binary sequence S = L + M = (l 1 ,l 2 ,...,l 32 ,m 1 ,m 2 ,...,m le ), that is, S = (s 1 ,s 2 ,...,s 32+le ),

[0076] (2) Set a counter count m =0, used to indicate the number of embedded information bits;

[0077] (3) Read the original video bitstream into the cache, and read one NAL unit in turn according to the separation index of different NAL units. In the H.264 bitstream, the NAL unit is usually separated by a three-byte start code 0x000001 or a four-byte start code 0x00000001, which marks the beginning of a new NAL unit.

[0078] (4) Determine the type of the current NAL unit. If it is a P_NAL type or a B_NAL type, proceed to the next step. Otherwise, skip the NAL unit and continue to read the next NAL unit.

[0079] (5) When NAL is P_NAL or B_NAL, skip the NAL header and slice header data and directly perform the next operation on the subsequent slice data;

[0080] (6) Determine the types of different slices. If the slice type is P slice or B slice, proceed to the next step. Otherwise, skip the slice.

[0081] (7) Carrier shuffling and construction strategy. In the H.264 / AVC standard, the size of the basic macroblock is 16×16. Each macroblock can also be divided into smaller sub-macroblocks, such as 16×8, 8×16, 8×8, 4×4, etc., according to actual conditions. In order to reduce the amount of embedded modification and reduce the distortion caused by embedding, starting from the first macroblock in the slice, except for the 16×16 partitioned macroblocks, non-P macroblocks or non-B macroblocks, the vertical component MVDx and the horizontal component MVDy of the motion vector residual with larger absolute values ​​are extracted from each macroblock in turn until the last macroblock in the slice; then, the components with larger absolute values ​​are extracted from the first macroblock in the same way. If there is no extractable component in the macroblock, the macroblock is skipped; and so on, until all components are extracted. During the extraction process, the sequence number of the macroblock where the extracted component is located in the slice is recorded at the same time. The extracted component sequence is recorded as C, and the recorded sequence number is recorded as FG:

[0082] C=(max(|MVDx 1 |,|MVDy 1 |),max(|MVDx 2 |,|MVDy 2 |),...,max(|MVDx n |,|MVDy n |))

[0083] =(c 1 ,c 2 ,...,c n )

[0084] FG=(fg 1 ,fg 2 ,...,fg n )

[0085] Among them, MVDx 1 and MVDy 1 They represent the vertical and horizontal components of the motion vector residual of the macroblock respectively; |a| means taking the absolute value of a; max(a,b) means taking the larger number of a and b; c 1Indicates the component with the larger absolute value among the vertical and horizontal components of the motion vector residual; n is the length of sequence C; fg 1 Indicates the sequence number of the macroblock at this position in the slice.

[0086] The least significant bit information of all carriers is stored in sequence as a sequence G = (lsb 1 ,lsb 2 ,...,lsb n ), and mark the modification cost of each carrier: p = (ρ 1 ,ρ 2 ,...,ρ n ). Among them, lsb 1 Indicates c 1 The least significant bit value of mbCS represents the total number of available carriers in the macroblock where the i-th carrier is located.

[0087] (8) Based on the embedding rate α and the basic matrix Establish the parity check matrix H required by STC STC , where H STC Depend on The matrix is ​​obtained by repeating the arrangement in the direction of the main diagonal line, and each time it is repeated, the submatrix is ​​placed on the right side of the previous submatrix and moved down one row as a whole. The embedding rate α of STC coding is affected by the basic matrix In w decision, when When is an integer, Otherwise, w has two values in Indicates floor rounding operation. The larger h is, the greater the STC encoding time complexity is.

[0088]

[0089] in, Each element in takes the value of 0 or 1.

[0090] (9) Use the sequence G obtained in step 6 as the carrier required by STC and the STC parity check matrix constructed in step 7, and replace the countth m Starting from the bit, extract bits as secret information embedded in STC Indicates rounding down, and combined with the parity check matrix obtained in step 7, STC is used to construct a matrix that satisfies H STC G′ T =MI, and the embedding path G′ that minimizes the overall steganalysis embedding cost is = (lsb 1 ′,lsb 2′,...,lsb n ′). The distortion cost function calculation formula is:

[0091]

[0092] (10) According to G and STC encoding, G′ is obtained, and the embedded vector sequence C is modified to obtain the encrypted vector sequence C′=(c 1 ′,c 2 ′,...,c n ′), where the modification method is: if lsb i ≠lsb i ′, (lsb i ∈G,lsb i ′∈G′), then the embedding vector c of the corresponding position needs to be modified i , if lsb i =lsb i ′, then there is no need to modify the embedding carrier c of the corresponding position i , that is, c i ′=c i Among them, the embedding carrier c i The modification method is as follows:

[0093] 1) If MVDX i !=MVDY i And c i is a positive odd number or a negative even number, then c i Subtract 1, and we get c i ′;

[0094] 2) If MVDX i !=MVDY i And c i is a positive even number or a negative odd number, then c i Add 1, and we get c i ′;

[0095] 3) If MVDX i ==MVDY i And c i If c is a positive number, i Add 1, and we get c i ′;

[0096] 4) If MVDX i ==MVDY i And c i If c is negative, i Subtract 1, and we get c i ′;

[0097] (11) According to the sequence number of the macroblocks in FG, first extract the elements whose macroblock is the first macroblock from the C′ sequence in order from left to right until the end of the sequence; then extract the elements whose macroblock is the second macroblock from the C′ sequence in order from left to right; and so on until the last macroblock, and record the extracted element sequence as Cover′.

[0098] (12) According to the Cover′ sequence, modify the components with larger absolute values ​​of the vertical components MVDx and horizontal components MVDy of the motion vector residuals in all macroblocks in the slice. After the modification is completed, the motion vector residuals are re-encoded and written back to the bitstream to complete the encoding of the slice and recalculate the counter value. in, Indicates rounding up to the nearest integer.

[0099] (13) Read the judgment count m , if count m <32+le, execute step (14), otherwise, embedding is completed, embedding is stopped, and the video file is output;

[0100] (14) If the NAL unit has not been processed, proceed to the next slice encoding and jump to step (6) until the NAL unit is processed; otherwise, continue to process the next NAL unit and jump to step (4).

[0101] 2. Information extraction process

[0102] (1) Set a counter count m =0, used to indicate the number of information bits extracted, and start reading the video sequence in which the information embedding is completed into the cache, determine the separation index of different NAL units, and judge the type of the current NAL. If it is a P_NAL type or a B_NAL type, proceed to the next step. Otherwise, skip the NAL unit and continue to read the next NAL unit;

[0103] (2) When NAL is P_NAL or B_NAL, skip the NAL header and slice header data, and directly perform the next operation on the subsequent slice data;

[0104] (3) Determine the types of different slices. If the slice type is P or B slice and the macroblock type is P or B macroblock, locate and parse the MVD data of each macroblock, perform entropy decoding on it, and obtain the MVD.

[0105] (4) Except for 16×16 partitioned macroblocks, non-P macroblocks or non-B macroblocks, starting from the first macroblock in the slice, extract the vertical component MVDx and the horizontal component MVDy of a motion vector residual with a larger absolute value from each macroblock in turn until the last macroblock in the slice; then, loop and extract the component with a larger absolute value from the first macroblock according to the same operation. If there is no extractable component in the macroblock, skip the macroblock; and so on, until all components are extracted. The extracted component sequence is recorded as C:

[0106] C=(max(|MVDx 1 |,|MVDy 1 |),max(|MVDx 2 |,|MVDy 2 |),...,max(|MVDx n |,|MVDy n |))

[0107] =(c 1 ,c 2 ,...,c n )

[0108] Among them, MVDx 1 and MVDy 1 They represent the vertical and horizontal components of the motion vector residual of the macroblock respectively; |a| means taking the absolute value of a; max(a,b) means taking the larger number of a and b; c 1 Represents the component with the larger absolute value between the vertical component and the horizontal component of the motion vector residual; n is the length of sequence C.

[0109] The least significant bit information of all carriers is stored in sequence as a sequence G = (lsb 1 ,lsb 2 ,...,lsb n ):

[0110] (5) Based on the load rate α and parameter matrix Establish the parity check matrix H required by STC STC ;

[0111] (6) The obtained sequence G is combined with the obtained parity check matrix to calculate the secret information sequence, and the calculation formula H is used for STC decoding. STC C′=MI, extract the secret information MI, the length of the secret information sequence is

[0112]

[0113] (7) Determine count mIs it greater than 32? If so, decode and decrypt the first 32 bits of the information sequence to obtain the length le of the secret information. If not, execute step 9.

[0114] (8) Determine count m Is it less than 32+le? If so, after the secret information of the slice is extracted, proceed to the next slice unit and jump to step 3. If the last slice of the NAL unit is processed, jump to step 2 to continue processing the next NAL unit; otherwise, execute 10;

[0115] (10) After the information sequence is extracted, all the extracted sequences are decoded and decrypted to obtain the secret information.

[0116] The above embodiments are only for illustrating the technical idea of ​​the present invention, and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the present invention.

Claims

1. An efficient H264 video steganography method for embedding the information to be hidden into the original video; Features The steps include: Step A1, obtaining a binary sequence S to be hidden based on the information to be hidden; Step A2, reading the original video bitstream, when the NAL unit is of P_NAL type or B_NAL type, using the carrier shuffle and construction strategy for the slice therein to select a carrier sequence C from the available macroblocks; and saving the least significant bit information of all carriers in sequence as a sequence G; Step A3, constructing an STC parity check matrix, calculating the embedding path G′ with the minimum distortion cost through STC coding, modifying the carrier sequence C according to G′, and obtaining the encrypted carrier sequence C′; Step A4, extracting macroblocks from the carrier sequence C' in order to obtain a sequence Cover', and modifying the motion vector residual of the macroblock in the slice, performing entropy coding and writing it back to the bitstream to complete the encoding of the slice; Step A5, determining whether the NAL unit where the slice is located has been processed, if it has been processed, transferring to the next NAL unit, otherwise transferring to the next slice; until the embedding of the binary sequence S to be hidden is completed, the video file is output.

2. The method according to claim 1, Features: The specific content of step A1 is: Step A11, encrypt the information to be hidden and then convert it into a binary sequence M=(m 1 ,m 2 ,...,m le ), le is the length of the secret information binary sequence; Step A12, encrypt le and convert it into 32-bit binary form to obtain the sequence L=(l 1 ,l 2 ,...,l 32 ); Step A13, merging the sequences L and M to obtain the hidden binary sequence S=L+M=(l 1 ,l 2 ,...,l 32 ,m 1 ,m 2 ,...,m le ), that is, S = (s 1 ,s 2 ,...,s 32+le ).

3. The method according to claim 1, Features: In step A2, for a NAL unit of a P_NAL type or a B_NAL type, the NAL header and the slice header are skipped, and the type of the slice data is determined to be a P slice or a Bslice, and a carrier scrambling and construction strategy is adopted for it, otherwise the slice is skipped.

4. The method according to claim 1, Features: In the step A2, the specific content of selecting a carrier sequence from available macroblocks by using the carrier shuffling and construction strategy is: Starting from the first macroblock in the slice, except for 16×16 partitioned macroblocks, non-P macroblocks or non-B macroblocks, extract the component with the larger absolute value of the vertical component MVDx and the horizontal component MVDy of a motion vector residual from each macroblock in turn until the last macroblock in the slice; Then start again from the first macroblock in the slice and repeat the above steps until all components are extracted; During this process, if there are no extractable components in a macroblock, the macroblock is skipped; The extracted component sequence is the vector sequence C.

5. The method according to claim 1, Features: In step A3, the method of constructing the STC parity check matrix is ​​based on the embedding rate α and the basic matrix Establish STC parity check matrix H STC ; Among them, the embedding rate α of STC coding is affected by the basic matrix In w decision, when When is an integer, Otherwise, w has two values in Indicates floor operation; in, The value is 0 or 1.

6. The method according to claim 1, Features: In the step A3, the embedding path G′ with the minimum distortion cost is calculated by STC coding, and the carrier sequence C is modified according to G′ to obtain the encrypted carrier sequence C′; specifically, the following steps are included: Step A31: count the number of the binary sequence S to be hidden m Starting from the bit, extract bits as the secret information embedded in STC, and STC is used to construct the embedding path G′ that minimizes the overall steganalysis embedding cost; Step A32, compare sequence G=(lsb 1 ,lsb 2 ,...,lsb n ) and G′=(lsb 1 ′,lsb 2 ′,...,lsb n ′), if lsb i ≠lsb i ', then the vector sequence C = (c 1 ,c 2 ,...,c n ) in the corresponding position of the embedding vector c i Modify to get c ni ′, otherwise no modification is required, let c ni ′=c i ; Finally, the dense vector sequence C′=(c 1 ′,c 2 ′,...,c n ′); where lsb 1 Indicates c 1 The least significant bit value, c 1 Indicates the component with the larger absolute value between the vertical and horizontal components of the motion vector residual.

7. The method according to claim 6, Features: In step A32, the embedding carrier c i The way to make the modification is, If MVDX i !=MVDY i And c i is a positive odd number or a negative even number, then c i Subtract 1, and we get c i ′; If MVDX i !=MVDY i And c i is a positive even number or a negative odd number, then c i Add 1, and we get c i ′; If MVDX i ==MVDY i And c i If c is a positive number, i Add 1, and we get c i ′; If MVDX i ==MVDY i And c i If c is negative, i Subtract 1, and we get c i ′; Among them, MVDx 1 and MVDy 1 Represents the vertical and horizontal components of the motion vector residual of the macroblock respectively.

8. The method according to claim 1, Features: The specific process of step A4 is: Step A41, according to the sequence number of the macroblock in FG, first extract the elements of the first macroblock from the sequence C′ in order from left to right until the end of the sequence; then extract the elements of the second macroblock from the C′ sequence in order from left to right; and so on until the last macroblock, and record the extracted element sequence as Cover′; wherein FG is the sequence number corresponding to the selection of macroblocks to construct the sequence C; Step A42, according to the Cover′ sequence, modify the components with larger absolute values ​​of the vertical component MVDx and the horizontal component MVDy of the motion vector residual in all macroblocks in the slice. After the modification is completed, the motion vector residual is re-encoded by entropy and written back to the bitstream to complete the encoding of the slice.

Citation Information

Patent Citations

  • Adaptive H.264 compressed domain video watermark embedding and extracting method

    CN101951520A

  • Access unit based decoding method and device for SVC

    KR1020120072718A

  • Method and device for encoding image data, and method and device for decoding image data

    US20120230397A1