[go: up one dir, main page]

CN108322757B - Video Steganography Method Based on Intra-frame Predictive Coding - Google Patents

Video Steganography Method Based on Intra-frame Predictive Coding Download PDF

Info

Publication number
CN108322757B
CN108322757B CN201810039694.8A CN201810039694A CN108322757B CN 108322757 B CN108322757 B CN 108322757B CN 201810039694 A CN201810039694 A CN 201810039694A CN 108322757 B CN108322757 B CN 108322757B
Authority
CN
China
Prior art keywords
prediction
secret
block
video
prediction mode
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.)
Active
Application number
CN201810039694.8A
Other languages
Chinese (zh)
Other versions
CN108322757A (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.)
Jinan University
Original Assignee
Jinan University
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 Jinan University filed Critical Jinan University
Priority to CN201810039694.8A priority Critical patent/CN108322757B/en
Publication of CN108322757A publication Critical patent/CN108322757A/en
Application granted granted Critical
Publication of CN108322757B publication Critical patent/CN108322757B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • H04N19/467Embedding additional information in the video signal during the compression process characterised by the embedded information being invisible, e.g. watermarking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本发明提供了基于帧内预测编码的视频隐写方法,通过构造合适的失真函数后利用STC进行实际嵌入,能确保修改预测模式造成的失真是接近最小的。本发明发送方嵌入消息时,从第一个关键帧I1开始嵌入,根据映射规则得到最优组集

Figure DDA0001549123080000011
将最优组集
Figure DDA0001549123080000012
秘密消息序列m1,1和嵌入扰动集送入第一层嵌入器得到含秘组集
Figure DDA0001549123080000013
将含秘组集
Figure DDA0001549123080000014
秘密消息序列m1,2和嵌入扰动集送入第二层嵌入器得到含秘组集
Figure DDA0001549123080000015
根据含秘组集
Figure DDA0001549123080000016
选用最终预测模式生成视频编码;最终生成含密编码视频X′;接收方提取消息时,从含密编码视频中获取帧内预测编码后的关键帧;从第一个关键帧开始消息提取,利用解码器得到预测模式;根据映射规则得到含密组集,并提取得到私密消息。

Figure 201810039694

The present invention provides a video steganography method based on intra-frame prediction coding. By constructing a suitable distortion function and then using STC for actual embedding, it can ensure that the distortion caused by modifying the prediction mode is close to the minimum. In the present invention, when the sender embeds the message, it starts to embed from the first key frame I1 , and obtains the optimal group set according to the mapping rule

Figure DDA0001549123080000011
the optimal set
Figure DDA0001549123080000012
The secret message sequence m 1,1 and the embedded perturbation set are sent to the first-layer embedder to obtain the secret group set
Figure DDA0001549123080000013
will contain secret group set
Figure DDA0001549123080000014
The secret message sequence m 1, 2 and the embedded perturbation set are sent to the second-layer embedder to obtain the secret group set
Figure DDA0001549123080000015
According to the set of secret groups
Figure DDA0001549123080000016
Select the final prediction mode to generate video code; finally generate the encrypted video X′; when the receiver extracts the message, obtain the key frame after intra-frame prediction encoding from the encrypted video; start the message extraction from the first key frame, use The decoder obtains the prediction mode; obtains the dense set according to the mapping rule, and extracts the private message.

Figure 201810039694

Description

基于帧内预测编码的视频隐写方法Video Steganography Method Based on Intra-frame Predictive Coding

技术领域technical field

本发明属于视频信息隐藏技术,具体为基于帧内预测编码的视频隐写方法。The invention belongs to the video information hiding technology, in particular to a video steganography method based on intra-frame prediction coding.

背景技术Background technique

隐写术是保证消息传输隐秘性的重要手段。消息加密虽然可以保证消息的私密性,但消息传递的行为会被攻击者知晓,且加密后的乱码形态的密文也会引起攻击者的兴趣;相比之下,隐写术可以保证消息传输行为的不可见,攻击者无法分辨这是一次普通传输还是含密传输,因此隐写术是加密技术的重要补充。隐写术可以应用在各类安全级别高的消息传输领域,有效防止攻击者的攻击。Steganography is an important means to ensure the confidentiality of message transmission. Although message encryption can ensure the privacy of messages, the behavior of message transmission will be known to attackers, and the encrypted garbled ciphertext will also attract the interest of attackers; in contrast, steganography can ensure message transmission. The behavior is invisible, and the attacker cannot distinguish whether it is a normal transmission or an encrypted transmission, so steganography is an important supplement to encryption technology. Steganography can be applied to all kinds of high-security message transmission fields to effectively prevent attackers from attacking.

视频隐写技术可以对视频编码时运动矢量、量化DCT系数、可变长度编码和帧内预测模式(IPM)等不同编码环节进行修改,实现秘密消息的隐藏。发送方通过使用视频隐写技术把秘密消息隐藏到视频载体中,接收方可以顺利获得秘密,同时第三方不会发现秘密的存在。Video steganography can modify different coding links such as motion vectors, quantized DCT coefficients, variable length coding and intra-frame prediction mode (IPM) during video coding, so as to hide secret messages. The sender hides the secret message in the video carrier by using the video steganography technology, the receiver can obtain the secret smoothly, and the third party will not discover the existence of the secret.

如今基于帧内预测的视频隐写方案,一般都假设修改每个4x4预测块所造成影响是一样的,尽可能地减少修改次数,能有效减少视频失真;然而这种思路容易导致对实际修改影响的描述不足。因此有必要结合新方案来更好地描述整体的嵌入影响,从而实现最小扰动的秘密嵌入。Today's video steganography schemes based on intra-frame prediction generally assume that the impact of modifying each 4x4 prediction block is the same, and reducing the number of modifications as much as possible can effectively reduce video distortion; however, this kind of thinking is likely to lead to actual modification. description is insufficient. Therefore, it is necessary to incorporate new schemes to better describe the overall embedding effect, so as to achieve secret embedding with minimal perturbation.

发明内容SUMMARY OF THE INVENTION

为了解决现有视频隐写技术所存在的问题,本发明提供了基于帧内预测编码的视频隐写方法,该方法通过构造合适的失真函数后利用自适应隐写编码技术(STC)进行实际嵌入,这样能确保修改预测模式造成的失真是接近最小的。In order to solve the problems existing in the existing video steganography technology, the present invention provides a video steganography method based on intra-frame prediction coding. The method uses adaptive steganographic coding technology (STC) for actual embedding after constructing a suitable distortion function. , which ensures that the distortion caused by modifying the prediction mode is nearly minimal.

本发明采用如下技术方案来实现:基于帧内预测编码的视频隐写方法,包括以下步骤:The present invention adopts the following technical solutions to realize: a video steganography method based on intra-frame prediction coding, comprising the following steps:

发送方和接收方在隐写传输前,共同协商映射规则,映射规则将所有4x4块可能使用的预测模式分为3组;The sender and receiver negotiate the mapping rules together before steganographic transmission, and the mapping rules divide all possible prediction modes for 4x4 blocks into 3 groups;

发送方嵌入消息:选定载体视频X,将其解码为原始视频帧序列,获得其中的关键帧I1,I2,...;The sender embeds the message: selects the carrier video X, decodes it into the original video frame sequence, and obtains the key frames I 1 , I 2 , ...;

从第一个关键帧I1开始嵌入,设I1嵌入的秘密消息为m1,1和m1,2;对I1使用帧内预测编码得到所有将用帧内4x4块预测编码的像素块,以及这些像素块使用帧内预测编码得到的最优预测模式;进一步根据映射规则得到最优组集

Figure GDA0002730039180000011
Start embedding from the first key frame I 1 , and let the secret messages embedded in I 1 be m 1,1 and m 1,2 ; use intra-frame prediction coding on I 1 to get all pixel blocks that will be coded with intra-frame 4x4 block prediction , and the optimal prediction mode obtained by using intra-frame prediction coding for these pixel blocks; further obtain the optimal group set according to the mapping rule
Figure GDA0002730039180000011

利用最优组集

Figure GDA0002730039180000021
计算出每个4x4块的加1嵌入扰动和减1嵌入扰动,和计算时所使用的预测模式;Use the optimal set
Figure GDA0002730039180000021
Calculate the plus-1 embedded perturbation and minus-1 embedded perturbation for each 4x4 block, and the prediction mode used in the calculation;

将最优组集

Figure GDA0002730039180000022
作为载体向量,秘密消息序列m1,1和对应的4x4块嵌入扰动集送入自适应编码的第一层嵌入器,得到含秘组集
Figure GDA0002730039180000023
the optimal set
Figure GDA0002730039180000022
As a carrier vector, the secret message sequence m 1 , 1 and the corresponding 4x4 block embedding perturbation set are sent to the first layer embedder of adaptive coding, and the set containing the secret group is obtained.
Figure GDA0002730039180000023

将含秘组集

Figure GDA0002730039180000024
作为载体向量,秘密消息序列m1,2和对应的4x4块嵌入扰动集送入自适应编码的第二层嵌入器,得到含秘组集
Figure GDA0002730039180000025
will contain secret group set
Figure GDA0002730039180000024
As the carrier vector, the secret message sequence m 1, 2 and the corresponding 4x4 block embedded perturbation set are sent to the second layer embedder of adaptive coding, and the set containing the secret group is obtained.
Figure GDA0002730039180000025

根据含秘组集

Figure GDA0002730039180000026
选用每个4x4块的最终预测模式,生成视频编码;According to the set of secret groups
Figure GDA0002730039180000026
Select the final prediction mode of each 4x4 block to generate a video code;

对下一个关键帧嵌入消息,直到完成所有秘密消息的嵌入,或是使用完所有的关键帧;利用标准编码器完成视频编码的其余部分,最终生成含密编码视频X′;Embed messages for the next key frame until the embedding of all secret messages is completed, or all key frames are used up; use the standard encoder to complete the rest of the video encoding, and finally generate the encrypted video X';

接收方提取消息:利用解码器从含密编码视频X′中获取帧内预测编码后的关键帧I′1,I′2,...;The receiver extracts the message: uses the decoder to obtain the key frames I′ 1 , I′ 2 , .

从第一个关键帧I′1开始消息提取,利用解码器得到I1中每个4x4块的预测模式;进一步根据映射规则得到含密组集

Figure GDA0002730039180000027
Start message extraction from the first key frame I' 1 , use the decoder to obtain the prediction mode of each 4x4 block in I 1 ; further obtain the dense group set according to the mapping rule
Figure GDA0002730039180000027

将含密组集

Figure GDA0002730039180000028
作为含密向量,送入自适应编码的第一层提取器,得到秘密消息序列m1,1,送入自适应编码的第二层提取器,得到秘密消息序列m1,2;Dense set
Figure GDA0002730039180000028
As a dense vector, it is sent to the first layer extractor of adaptive coding to obtain the secret message sequence m 1,1 , and sent to the second layer extractor of adaptive coding to obtain the secret message sequence m 1,2 ;

对下一个关键帧进行消息提取,直到完成所有秘密消息的提取,或是使用完所有的关键帧。Message extraction is performed on the next keyframe until all secret messages have been extracted, or all keyframes have been used.

优选地,所述预测模式为mdπ(1),mdπ(2),...,

Figure GDA00027300391800000213
π(i)∈{0,1,...,8};所述最优组集
Figure GDA0002730039180000029
第一层嵌入器得到的含秘组集
Figure GDA00027300391800000210
第二层嵌入器得到的含秘组集
Figure GDA00027300391800000211
Preferably, the prediction mode is md π(1) , md π(2) , ...,
Figure GDA00027300391800000213
π(i)∈{0,1,...,8}; the optimal set
Figure GDA0002730039180000029
The set of secret groups obtained by the first layer embedder
Figure GDA00027300391800000210
The secret group set obtained by the second layer embedder
Figure GDA00027300391800000211

优选地,第一层嵌入器中,每个4x4块的嵌入扰动为:Preferably, in the first layer of the embedder, the embedding perturbation of each 4x4 block is:

Figure GDA00027300391800000212
Figure GDA00027300391800000212

其中

Figure GDA00027300391800000214
为每个4x4块的加1嵌入扰动和减1嵌入扰动。in
Figure GDA00027300391800000214
Add 1 and subtract 1 embedding perturbation for each 4x4 block.

优选地,第二层嵌入器中,每个4x4块的嵌入扰动为:Preferably, in the second layer embedder, the embedding perturbation of each 4x4 block is:

Figure GDA0002730039180000031
Figure GDA0002730039180000031

其中

Figure GDA0002730039180000032
为每个4x4块的加1嵌入扰动和减1嵌入扰动。in
Figure GDA0002730039180000032
Add 1 and subtract 1 embedding perturbation for each 4x4 block.

与现有技术相比,本发明具有如下优点和有益效果:Compared with the prior art, the present invention has the following advantages and beneficial effects:

1、本发明利用自适应隐写编码(STC)设计隐写方案,基于帧内预测模式定义了失真函数;通过构造合适的失真函数后,利用自适应隐写编码技术(STC)进行实际嵌入,这样能确保修改预测模式造成的失真是接近最小的。1. The present invention utilizes adaptive steganographic coding (STC) to design a steganographic scheme, and defines a distortion function based on an intra-frame prediction mode; after constructing a suitable distortion function, the adaptive steganographic coding technology (STC) is used to carry out actual embedding, This ensures that the distortion caused by modifying the prediction mode is close to minimal.

本发明作为基于内部预测模式的视频隐写技术,可以更好地保存视频质量,而现有基于IPM的方法仅对合适的4×4帧内预测模式进行信息嵌入,而且非最优选择规则严重破坏了IPM的统计特性,使得基于IPM校准(IPMC)的隐写方法很容易被隐写分析工具检测。As a video steganography technology based on the intra prediction mode, the present invention can better preserve the video quality, while the existing IPM-based method only embeds information for the appropriate 4×4 intra-frame prediction mode, and the non-optimal selection rules are serious The statistical properties of IPM are destroyed, making the steganography method based on IPM calibration (IPMC) easy to be detected by steganalysis tools.

2、引入映射规则来扩展每个块的可选模式的范围,以增加修改预测模式的选择范围,进一步减少修改所造成的失真。这样可以确保在嵌入过程中以给定的嵌入率最大限度地保持IPM的最优性,从而有效抵抗基于IPM校准(IPMC)的隐写分析方法的检测。2. A mapping rule is introduced to expand the range of selectable modes of each block, so as to increase the selection range of modified prediction modes and further reduce the distortion caused by modification. This ensures that the optimality of the IPM is maintained to the maximum at a given embedding rate during the embedding process, thus effectively resisting the detection of steganalysis methods based on IPM calibration (IPMC).

3、本方法将信息嵌入在帧内预测环节,因此嵌入容量较高,可以传输的信息更多。本方法利用视频压缩质量设计嵌入位置,同时结合主流隐写编码方法,因此安全性更高。本方法可以提供高容量、高安全级别的视频隐写功能,应用在伪装成视频应用的隐秘信息通信里,例如可以应用在视频点播、视频录制、视频云存储、视频推荐等环境,将重要信息嵌入视频数据,实现秘密信息的可靠、不被察觉的传输,具有较好的实际应用价值。3. This method embeds information in the intra-frame prediction link, so the embedding capacity is higher and more information can be transmitted. This method uses the video compression quality to design the embedding position, and combines the mainstream steganographic coding methods, so the security is higher. The method can provide a high-capacity, high-security-level video steganography function, and can be used in secret information communication disguised as a video application, such as video on demand, video recording, video cloud storage, video recommendation, etc. Embedding video data to realize reliable and undetected transmission of secret information has good practical application value.

附图说明Description of drawings

图1是嵌入方案选用的9种帧内预测模式示意图;Fig. 1 is a schematic diagram of 9 intra-frame prediction modes selected by the embedding scheme;

图2是消息嵌入流程图;Fig. 2 is a flow chart of message embedding;

图3是消息提取流程图。Figure 3 is a flow chart of message extraction.

具体实施方式Detailed ways

下面结合实施例及附图对本发明作进一步详细的描述,但本发明的实施方式不限于此。The present invention will be described in further detail below with reference to the embodiments and the accompanying drawings, but the embodiments of the present invention are not limited thereto.

实施例Example

本发明结合了自适应隐写编码(STC)和映射规则来设计隐写方案,通过构造扰动函数来描述嵌入影响,采用自适应隐写编码技术(STC)来实现嵌入,同时结合映射规则来进一步缩小扰动影响。由于增加绝对误差和(SAD)导致预测模式复原现象更频繁的出现,所以我们在定义扰动函数时考虑了SAD预测偏差(SPD)。利用预测模式的绝对误差和(SAD)作为关键因素来构造扰动函数,嵌入方案应尽可能地遍历整个模式空间来找到适当的嵌入模式,因此,我们在此引入了预测模式和模式组之间的映射规则,以完成遍历;最后采用STC来实现实际的嵌入。此外,利用预测模式和预测组构建映射规则来扩展每个4x4块的可选模式的范围。本发明能有效保持视频的预测最优特性,以防止被基于校准的隐写分析方法发现秘密存在。The invention combines adaptive steganographic coding (STC) and mapping rules to design a steganographic scheme, constructs a perturbation function to describe the impact of embedding, adopts adaptive steganographic coding technology (STC) to achieve embedding, and combines mapping rules to further Minimize disturbance effects. Since the addition of the sum of absolute errors (SAD) leads to more frequent occurrence of the prediction mode recovery phenomenon, we consider the SAD prediction bias (SPD) when defining the perturbation function. Using the sum of absolute errors (SAD) of the prediction modes as a key factor to construct the perturbation function, the embedding scheme should traverse the entire mode space as much as possible to find an appropriate embedding mode, so here we introduce the difference between prediction modes and mode groups Mapping rules to complete the traversal; finally STC is used to implement the actual embedding. Furthermore, mapping rules are constructed using prediction modes and prediction groups to expand the range of selectable modes for each 4x4 block. The present invention can effectively maintain the predicted optimal characteristics of the video, so as to prevent the existence of secrets from being discovered by the calibration-based steganalysis method.

本发明设有发送方和接收方,在隐写传输前,它们共同协商映射规则。映射规则如下:H.264的帧内预测编码将关键帧分割成4x4和16x16的块,映射规则将所有4x4块可能使用的预测模式分为3组,如下所示:The present invention is provided with a sender and a receiver, and before the steganographic transmission, they jointly negotiate the mapping rules. The mapping rules are as follows: The intra-frame prediction coding of H.264 divides the key frame into 4x4 and 16x16 blocks, and the mapping rules divide the prediction modes that may be used for all 4x4 blocks into 3 groups, as follows:

gp0={md0,md1,md4}gp 0 ={md 0 , md 1 , md 4 }

gp1={md3,md5,md8}gp 1 ={md 3 , md 5 , md 8 }

gp2={md2,md6,md7}gp 2 ={md 2 , md 6 , md 7 }

其中mdi表示预测模式i,每个预测模式对应的预测扫描顺序如图1所示。该映射规则是我们在大量视频帧序列分析基础上得到的一个较好的分组方法。Where md i represents the prediction mode i, and the prediction scan order corresponding to each prediction mode is shown in FIG. 1 . The mapping rule is a better grouping method obtained by analyzing a large number of video frame sequences.

如图1所示,在9种预测模式中,灰色部分代表的是一个4x4的预测块,在帧内预测过程中,4x4预测块根据其左邻及上邻的亮度单元来进行预测取值,而预测模式决定了预测块取值的方向,每种预测模式含义如表1所示。As shown in Figure 1, among the 9 prediction modes, the gray part represents a 4x4 prediction block. During the intra prediction process, the 4x4 prediction block performs prediction values according to its left and upper neighbor luminance units, The prediction mode determines the direction of the value of the prediction block, and the meaning of each prediction mode is shown in Table 1.

表1.方案所使用9种预测模式Table 1. Nine prediction modes used by the scheme

Figure GDA0002730039180000041
Figure GDA0002730039180000041

Figure GDA0002730039180000051
Figure GDA0002730039180000051

图1的0号图中,使用预测模式0(Vertical)进行取值时,4x4预测块里每一列的亮度单元等于该列垂直方向上的邻边亮度值。而其中较特殊的预测模式为2号图中的平均值预测(DC),预测块的值等于邻边(A+B+C+D+I+J+K+L+M)/7。In No. 0 of FIG. 1 , when the prediction mode 0 (Vertical) is used for the value, the luminance unit of each column in the 4×4 prediction block is equal to the luminance value of the adjacent side in the vertical direction of the column. The more special prediction mode is the average prediction (DC) in Figure 2, and the value of the prediction block is equal to the adjacent edge (A+B+C+D+I+J+K+L+M)/7.

如果在帧内预测期间,原本最优预测模式为mdi,我们却使用模式mdj,则该模式替换所产生的SAD预测偏差(SPD)为:If during intra prediction, the original optimal prediction mode is md i , but we use mode md j , the SAD prediction bias (SPD) resulting from this mode replacement is:

SPDi,j=|SAD(mdi)-SAD(mdj)|SPD i,j =|SAD(md i )-SAD(md j )|

SAD(mdi)是使用模式mdi产生的预测SAD。SAD(md i ) is the predicted SAD generated using mode md i .

我们选择若干视频序列作为实验序列,观察当最优预测模式替换成其他8种模式时所产生的SPD。假设具有最佳模式md0的4x4预测模式总数为K,则每个4x4预测模式的平均SPD为

Figure GDA0002730039180000052
实验结果如表2所示,该表显示了用不同候选模式代替最优模式产生的SPD。We select several video sequences as experimental sequences and observe the resulting SPD when the optimal prediction mode is replaced by the other 8 modes. Assuming that the total number of 4x4 prediction modes with the best mode md 0 is K, the average SPD of each 4x4 prediction mode is
Figure GDA0002730039180000052
The experimental results are shown in Table 2, which shows the SPD produced by substituting different candidate modes for the optimal mode.

由于隐写时不会用同一组内的模式互相替换,因此我们将SPD值较大的模式分在同一组以降低整体嵌入扰动值。例如,从表2可以看出,把序列I帧里预测模式md0分别替换成其余8种候选预测模式,造成的平均SPD如第一行所示,其中把md0替换成md1产生的平均SPD值最大,因此把md0和md1分在同一组。依次类推,最终gp0={md0,md1,md4}。Since the patterns in the same group are not replaced with each other during steganography, we group the patterns with larger SPD values into the same group to reduce the overall embedded perturbation value. For example, as can be seen from Table 2, replacing the prediction mode md 0 in the sequence I frame with the remaining 8 candidate prediction modes, the resulting average SPD is shown in the first row, where md 0 is replaced by the average generated by md 1 The SPD value is the largest, so md 0 and md 1 are placed in the same group. And so on, finally gp 0 ={md 0 , md 1 , md 4 }.

表2.每个4x4预测模式平均SPDTable 2. Average SPD per 4x4 prediction mode

Figure GDA0002730039180000061
Figure GDA0002730039180000061

发送方的消息嵌入流程如图2所示,具体流程如下:The message embedding process of the sender is shown in Figure 2, and the specific process is as follows:

步骤1:选定载体视频X,将其解码为原始视频帧序列,获得其中的关键帧I1,I2,...。Step 1: Select the carrier video X, decode it into the original video frame sequence, and obtain the key frames I 1 , I 2 , . . .

步骤2:从第一个关键帧I1开始嵌入。假设I1嵌入的秘密消息为m1,1和m1,2。对I1使用H.264的帧内预测编码,得到所有将用帧内4x4块(I4B)预测编码的像素块x1,...,

Figure GDA00027300391800000611
以及这些像素块使用标准H.264的帧内预测编码得到的最优预测模式mdπ(1),mdπ(2),...,
Figure GDA0002730039180000067
π(i)∈{0,1,…,8}。进一步根据映射规则得到最优组集
Figure GDA0002730039180000062
Step 2: Embedding from the first keyframe I 1 . Assume that the secret messages embedded in I 1 are m 1,1 and m 1,2 . Use H.264 intra prediction coding for I 1 , get all pixel blocks x 1 ,...,
Figure GDA00027300391800000611
and the optimal prediction modes md π(1) , md π(2) , ...
Figure GDA0002730039180000067
π(i)∈{0,1,…,8}. Further obtain the optimal group set according to the mapping rule
Figure GDA0002730039180000062

步骤3:利用最优组集

Figure GDA0002730039180000063
计算出每个I4B块的加1嵌入扰动和减1嵌入扰动
Figure GDA0002730039180000068
Figure GDA0002730039180000069
和计算时所使用的预测模式
Figure GDA00027300391800000610
Step 3: Use the optimal group set
Figure GDA0002730039180000063
Calculate the plus-1 embedded perturbation and minus-1 embedded perturbation for each I4B block
Figure GDA0002730039180000068
Figure GDA0002730039180000069
and the prediction mode used in the calculation
Figure GDA00027300391800000610

Figure GDA0002730039180000064
Figure GDA0002730039180000064

subject tomdj∈gpk,k=[g(i)+1]mod 3subject tomd j ∈ gp k , k=[g(i)+1]mod 3

Figure GDA0002730039180000065
Figure GDA0002730039180000065

subject tomdj∈gpk,k=[g(i)-1]mod 3subject tomd j ∈ gp k , k=[g(i)-1]mod 3

Figure GDA0002730039180000066
Figure GDA0002730039180000066

Figure GDA0002730039180000071
Figure GDA0002730039180000071

其中SAD(mdi)表示用预测模式mdi时产生的绝对误差和。where SAD(md i ) represents the sum of absolute errors generated when the prediction mode md i is used.

步骤4:设置每个I4B块的嵌入扰动为:Step 4: Set the embedding perturbation for each I4B block as:

Figure GDA0002730039180000079
Figure GDA0002730039180000079

将最优组集

Figure GDA0002730039180000072
作为载体向量,秘密消息序列m1,1和对应的嵌入扰动集{ρi,,i=1,...,N1}送入自适应编码±1 STC的第一层嵌入器,得到含秘组集
Figure GDA0002730039180000073
the optimal set
Figure GDA0002730039180000072
As a vector vector, the secret message sequence m 1 , 1 and the corresponding embedded perturbation set {ρ i ,, i= 1 , . Secret group set
Figure GDA0002730039180000073

步骤5:设置每个I4B块的嵌入扰动为:Step 5: Set the embedding perturbation for each I4B block as:

Figure GDA0002730039180000074
Figure GDA0002730039180000074

将含秘组集

Figure GDA0002730039180000075
作为载体向量,秘密消息序列m1,2和对应的嵌入扰动集{ρi,,i=1,...,N1}送入自适应编码±1 STC的第二层嵌入器,得到含秘组集
Figure GDA0002730039180000076
will contain secret group set
Figure GDA0002730039180000075
As a carrier vector, the secret message sequence m 1, 2 and the corresponding embedded perturbation set {ρ i ,, i= 1 , . Secret group set
Figure GDA0002730039180000076

步骤6:根据含秘组集

Figure GDA0002730039180000077
选用每个I4B块的最终预测模式,生成H.264编码。选用规则为:Step 6: According to the secret group set
Figure GDA0002730039180000077
The final prediction mode of each I4B block is selected to generate the H.264 code. The selection rules are:

Figure GDA0002730039180000078
Figure GDA0002730039180000078

步骤7:重复步骤2-6,对下一个关键帧嵌入消息,直到完成所有秘密消息的嵌入,或是使用完所有的关键帧。利用标准H.264编码器完成视频编码的其余部分。最终生成含密H.264编码视频X′。Step 7: Repeat steps 2-6 to embed messages for the next key frame until all secret messages are embedded, or all key frames are used up. The rest of the video encoding is done using the standard H.264 encoder. Finally, a dense H.264 encoded video X' is generated.

接收方的消息提取流程如图3所示,详细步骤如下:The message extraction process of the receiver is shown in Figure 3, and the detailed steps are as follows:

步骤1:利用H.264解码器,从含密H.264编码视频X′中获取帧内预测编码后的关键帧I′1,I′2,...。Step 1: Using the H.264 decoder, obtain the intra-prediction-coded key frames I' 1 , I' 2 , .

步骤2:从第一个关键帧I′1开始消息提取。利用H.264解码器得到I1中每个I4B块的预测模式mdπ(1),mdπ(2),...,

Figure GDA00027300391800000710
π(i)∈{0,1,…,8}。进一步根据映射规则得到含密组集
Figure GDA0002730039180000081
Step 2: Start message extraction from the first key frame I'1. Using the H.264 decoder to obtain the prediction mode md π(1) , md π(2) , ..., of each I4B block in I 1
Figure GDA00027300391800000710
π(i)∈{0,1,…,8}. Further obtain the dense set according to the mapping rule
Figure GDA0002730039180000081

步骤3:将含密组集

Figure GDA0002730039180000082
作为含密向量,送入自适应编码±1STC的第一层提取器,得到秘密消息序列m1,1,送入自适应编码±1STC的第二层提取器,得到秘密消息序列m1,2。Step 3: Set the dense group
Figure GDA0002730039180000082
As a dense vector, it is sent to the first layer extractor of adaptive coding ±1STC to obtain the secret message sequence m 1,1 , and sent to the second layer extractor of adaptive coding ±1STC to obtain the secret message sequence m 1,2 .

步骤4:重复步骤2-3,对下一个关键帧进行消息提取,直到完成所有秘密消息的提取,或是使用完所有的关键帧。Step 4: Repeat steps 2-3 to extract messages for the next key frame until all secret messages are extracted, or all key frames are used up.

上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。The above-mentioned embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited by the above-mentioned embodiments, and any other changes, modifications, substitutions, combinations, The simplification should be equivalent replacement manners, which are all included in the protection scope of the present invention.

Claims (1)

1.基于帧内预测编码的视频隐写方法,其特征在于,包括以下步骤:1. the video steganography method based on intra-frame prediction coding, is characterized in that, comprises the following steps: 发送方和接收方在隐写传输前,共同协商映射规则,映射规则将所有4x4块可能使用的预测模式分为3组;The sender and receiver negotiate the mapping rules together before steganographic transmission, and the mapping rules divide all possible prediction modes for 4x4 blocks into 3 groups; 发送方嵌入消息:选定载体视频X,将其解码为原始视频帧序列,获得其中的关键帧I1,I2,...;The sender embeds the message: selects the carrier video X, decodes it into the original video frame sequence, and obtains the key frames I 1 , I 2 , ...; 从第一个关键帧I1开始嵌入,设I1嵌入的秘密消息为m1,1和m1,2;对I1使用帧内预测编码得到所有将用帧内4x4块预测编码的像素块,以及这些像素块使用帧内预测编码得到的最优预测模式;进一步根据映射规则得到最优组集
Figure FDA0002730039170000011
Start embedding from the first key frame I 1 , and let the secret messages embedded in I 1 be m 1,1 and m 1,2 ; use intra-frame prediction coding on I 1 to get all pixel blocks that will be coded with intra-frame 4x4 block prediction , and the optimal prediction mode obtained by using intra-frame prediction coding for these pixel blocks; further obtain the optimal group set according to the mapping rule
Figure FDA0002730039170000011
利用最优组集
Figure FDA0002730039170000012
计算出每个4x4块的加1嵌入扰动和减1嵌入扰动,和计算时所使用的预测模式;
Use the optimal set
Figure FDA0002730039170000012
Calculate the plus-1 embedded perturbation and minus-1 embedded perturbation for each 4x4 block, and the prediction mode used in the calculation;
将最优组集
Figure FDA0002730039170000013
作为载体向量,秘密消息序列m1,1和对应的4x4块嵌入扰动集送入自适应编码的第一层嵌入器,得到含秘组集
Figure FDA0002730039170000014
the optimal set
Figure FDA0002730039170000013
As a carrier vector, the secret message sequence m 1 , 1 and the corresponding 4x4 block embedding perturbation set are sent to the first layer embedder of adaptive coding, and the set containing the secret group is obtained.
Figure FDA0002730039170000014
将含秘组集
Figure FDA0002730039170000015
作为载体向量,秘密消息序列m1,2和对应的4x4块嵌入扰动集送入自适应编码的第二层嵌入器,得到含秘组集
Figure FDA0002730039170000016
will contain secret group set
Figure FDA0002730039170000015
As the carrier vector, the secret message sequence m 1, 2 and the corresponding 4x4 block embedded perturbation set are sent to the second layer embedder of adaptive coding, and the set containing the secret group is obtained.
Figure FDA0002730039170000016
根据含秘组集
Figure FDA0002730039170000017
选用每个4x4块的最终预测模式,生成视频编码;
According to the set of secret groups
Figure FDA0002730039170000017
Select the final prediction mode of each 4x4 block to generate a video code;
对下一个关键帧嵌入消息,直到完成所有秘密消息的嵌入,或是使用完所有的关键帧;利用标准编码器完成视频编码的其余部分,最终生成含密编码视频X′;Embed messages for the next key frame until the embedding of all secret messages is completed, or all key frames are used up; use the standard encoder to complete the rest of the video encoding, and finally generate the encrypted video X'; 接收方提取消息:利用解码器从含密编码视频X′中获取帧内预测编码后的关键帧I′1,I′2,...;The receiver extracts the message: uses the decoder to obtain the key frames I′ 1 , I′ 2 , . 从第一个关键帧I′1开始消息提取,利用解码器得到I1中每个4x4块的预测模式;进一步根据映射规则得到含密组集
Figure FDA0002730039170000018
Start message extraction from the first key frame I' 1 , use the decoder to obtain the prediction mode of each 4x4 block in I 1 ; further obtain the dense group set according to the mapping rule
Figure FDA0002730039170000018
将含密组集
Figure FDA0002730039170000019
作为含密向量,送入自适应编码的第一层提取器,得到秘密消息序列m1,1,送入自适应编码的第二层提取器,得到秘密消息序列m1,2
Dense set
Figure FDA0002730039170000019
As a dense vector, it is sent to the first layer extractor of adaptive coding to obtain the secret message sequence m 1,1 , and sent to the second layer extractor of adaptive coding to obtain the secret message sequence m 1,2 ;
对下一个关键帧进行消息提取,直到完成所有秘密消息的提取,或是使用完所有的关键帧;Perform message extraction on the next key frame until all secret messages are extracted, or all key frames are used; 计算时所使用的预测模式
Figure FDA00027300391700000110
为:
The prediction mode used in the calculation
Figure FDA00027300391700000110
for:
Figure FDA00027300391700000111
Figure FDA00027300391700000111
subject tomdj∈gpk,k=[g(i)+1]mod 3subject tomd j ∈ gp k , k=[g(i)+1]mod 3
Figure FDA0002730039170000021
Figure FDA0002730039170000021
subject tomdj∈gpk,k=[g(i)-1]mod 3subject tomd j ∈ gp k , k=[g(i)-1]mod 3 其中SAD(mdi)表示用预测模式mdi时产生的绝对误差和;where SAD(md i ) represents the sum of absolute errors generated when the prediction mode md i is used; 所述预测模式为
Figure FDA00027300391700000213
mdπ(i)为第i个I4B块使用标准H.264的帧内预测编码得到的最优预测模式,π(i)∈{0,1,...,8};所述最优组集
Figure FDA0002730039170000022
第一层嵌入器得到的含秘组集
Figure FDA0002730039170000023
第二层嵌入器得到的含秘组集
Figure FDA0002730039170000024
根据含秘组集
Figure FDA0002730039170000025
Figure FDA0002730039170000026
选用每个I4B块的最终预测模式,生成H.264编码;选用规则为:
The prediction mode is
Figure FDA00027300391700000213
md π(i) is the optimal prediction mode obtained by using the standard H.264 intra-frame prediction coding for the i-th I4B block, π(i)∈{0,1,...,8}; the optimal group set
Figure FDA0002730039170000022
The set of secret groups obtained by the first layer embedder
Figure FDA0002730039170000023
The secret group set obtained by the second layer embedder
Figure FDA0002730039170000024
According to the set of secret groups
Figure FDA0002730039170000025
Figure FDA0002730039170000026
The final prediction mode of each I4B block is selected to generate H.264 encoding; the selection rules are:
Figure FDA0002730039170000027
Figure FDA0002730039170000027
第一层嵌入器中,每个4x4块的嵌入扰动为:In the first layer of the embedder, the embedding perturbation for each 4x4 block is:
Figure FDA0002730039170000028
Figure FDA0002730039170000028
其中
Figure FDA0002730039170000029
为每个4x4块的加1嵌入扰动和减1嵌入扰动;
in
Figure FDA0002730039170000029
plus-1 and minus-1 embedding perturbations for each 4x4 block;
Figure FDA00027300391700000210
Figure FDA00027300391700000210
第二层嵌入器中,每个4x4块的嵌入扰动为:In the second layer of the embedder, the embedding perturbation for each 4x4 block is:
Figure FDA00027300391700000211
Figure FDA00027300391700000211
其中
Figure FDA00027300391700000212
为每个4x4块的加1嵌入扰动和减1嵌入扰动;
in
Figure FDA00027300391700000212
plus-1 and minus-1 embedding perturbations for each 4x4 block;
所述3组预测模式为:The 3 groups of prediction modes are: gp0={md0,md1,md4}gp 0 ={md 0 , md 1 , md 4 } gp1={md3,md5,md8}gp 1 ={md 3 , md 5 , md 8 } gp2={md2,md6,md7}gp 2 ={md 2 , md 6 , md 7 } 其中,md0为垂直预测,md1为水平预测,md2为平均值预测,md3为左下方向对角线预测,md4为右下方向对角线预测,md5为垂直偏右预测,md6为水平偏下预测,md7为垂直偏左预测,md8为水平偏上预测;Among them, md 0 is the vertical prediction, md 1 is the horizontal prediction, md 2 is the average prediction, md 3 is the diagonal prediction in the lower left direction, md 4 is the diagonal prediction in the lower right direction, and md 5 is the vertical right prediction, md 6 is a horizontal downward prediction, md 7 is a vertical left prediction, and md 8 is a horizontal upward prediction; 如果在帧内预测期间,原本最优预测模式为mdi,却使用模式mdj,则该模式替换所产生的SAD预测偏差(SPD)为:If during intra prediction, the original optimal prediction mode is md i , but mode md j is used, the SAD prediction bias (SPD) generated by this mode replacement is: SPDi,j=|SAD(mdi)-SAD(mdj)|SPD i,j =|SAD(md i )-SAD(md j )| SAD(mdi)是使用模式mdi产生的预测SAD;选择若干视频序列作为实验序列,观察当最优预测模式替换成其他8种模式时所产生的SPD;将SPD值较大的模式分在同一组以降低整体嵌入扰动值。SAD(md i ) is the predicted SAD generated using mode md i ; select several video sequences as experimental sequences, and observe the SPD generated when the optimal prediction mode is replaced by the other 8 modes; the mode with larger SPD value is divided into the same group to reduce the overall embedded perturbation value.
CN201810039694.8A 2018-01-16 2018-01-16 Video Steganography Method Based on Intra-frame Predictive Coding Active CN108322757B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810039694.8A CN108322757B (en) 2018-01-16 2018-01-16 Video Steganography Method Based on Intra-frame Predictive Coding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810039694.8A CN108322757B (en) 2018-01-16 2018-01-16 Video Steganography Method Based on Intra-frame Predictive Coding

Publications (2)

Publication Number Publication Date
CN108322757A CN108322757A (en) 2018-07-24
CN108322757B true CN108322757B (en) 2020-12-11

Family

ID=62893578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810039694.8A Active CN108322757B (en) 2018-01-16 2018-01-16 Video Steganography Method Based on Intra-frame Predictive Coding

Country Status (1)

Country Link
CN (1) CN108322757B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111064859B (en) * 2020-01-09 2021-11-05 暨南大学 An Image Information Embedding Method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104010193A (en) * 2014-05-29 2014-08-27 中国科学院信息工程研究所 Video Steganography Method Based on Perturbation of Macroblock Division

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030009670A1 (en) * 2001-04-02 2003-01-09 Digimarc Corporation Background watermark processing
JP4981455B2 (en) * 2004-02-04 2012-07-18 ディジマーク コーポレイション On-chip digital watermarked image signal and photo travel log with digital watermark
CN101610405A (en) * 2008-06-20 2009-12-23 刘镔 A kind of is the information steganography method of carrier with the compressed video
CN102223540B (en) * 2011-07-01 2012-12-05 宁波大学 Information hiding method facing to H.264/AVC (automatic volume control) video
CN102685500B (en) * 2012-05-08 2014-11-12 合肥工业大学 H.264 large-capacity information hiding method based on information variable-length packet structure
US20150006390A1 (en) * 2013-06-26 2015-01-01 Visa International Service Association Using steganography to perform payment transactions through insecure channels

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104010193A (en) * 2014-05-29 2014-08-27 中国科学院信息工程研究所 Video Steganography Method Based on Perturbation of Macroblock Division

Also Published As

Publication number Publication date
CN108322757A (en) 2018-07-24

Similar Documents

Publication Publication Date Title
Mstafa et al. A highly secure video steganography using Hamming code (7, 4)
CN110677694B (en) Video encryption method for resisting contour attack
CN106162195B (en) A kind of 3D HEVC deep video information concealing methods based on single depth frame mode
CN103826128B (en) Encryption domain H.264/AVC video reversible data hiding method
CN106530203B (en) A kind of adaptive steganography method of jpeg image based on Texture complication
CN102905134B (en) Adaptive video digital steganography method
Li et al. A HEVC video steganalysis algorithm based on PU partition modes.
CN101841700A (en) H.264 compression bit stream oriented video watermark method
CN104602016A (en) HEVC video information hiding method based on intra-frame prediction mode difference
Ge et al. Oblivious video watermarking scheme with adaptive embedding mechanism
Fahim et al. Optimized steganography techniques based on PVDS and genetic algorithm
Chang et al. An adaptive steganography for index-based images using codeword grouping
Farfoura et al. A Fragile Watermarking Method for Content-Authentication of H. 264-AVC Video.
CN108322757B (en) Video Steganography Method Based on Intra-frame Predictive Coding
CN105704489A (en) Adaptive video motion vector steganographic method based on macro-block complexity
CN109525845B (en) A Built-in Information Hiding Verification Method for Video
CN107197298A (en) A kind of reversible steganography method of HEVC videos of the undistorted drift based on multi-component system
CN110971910A (en) Embedding method and extracting method for HEVC video information hiding
Hameed et al. High capacity image steganography system based on multi-layer security and LSB exchanging method
CN114727112A (en) Adaptive Information Hiding Method for H.265/HEVC Video Based on Distortion Compensation Optimization
CN102315931A (en) Method for hiding running coding of confidential information
Liu et al. Extended exploiting-modification-direction data hiding with high capacity
Kumar et al. A new data hiding method using adaptive quantization & dynamic bit plane based AMBTC
GR et al. Video steganography: a survey of techniques and methodologies
Shanthakumari et al. Video Steganography using LSB matching revisited algorithm

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant