[go: up one dir, main page]

CN103731654B - A kind of information insertion system and information extracting system using 2D/3D video - Google Patents

A kind of information insertion system and information extracting system using 2D/3D video Download PDF

Info

Publication number
CN103731654B
CN103731654B CN201310717324.2A CN201310717324A CN103731654B CN 103731654 B CN103731654 B CN 103731654B CN 201310717324 A CN201310717324 A CN 201310717324A CN 103731654 B CN103731654 B CN 103731654B
Authority
CN
China
Prior art keywords
flag
segment
module
control information
video
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
CN201310717324.2A
Other languages
Chinese (zh)
Other versions
CN103731654A (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.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and Technology
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 Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN201310717324.2A priority Critical patent/CN103731654B/en
Publication of CN103731654A publication Critical patent/CN103731654A/en
Application granted granted Critical
Publication of CN103731654B publication Critical patent/CN103731654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

本发明公开了一种使用2D/3D视频的信息嵌入方法,包括:获取2D/3D视频,并接收用户输入的嵌入控制信息、消息和密钥,将用户输入的消息进行封装,以生成多个比特串作为密段,将嵌入控制信息进行封装,以生成一个比特串,使用加密算法对步骤(3)生成的比特串进行加密,以生成加密后的嵌入后的控制信息密段,并设置计数器i=1,将用于标识嵌入控制信息第一次完整嵌入的标志CI_flag设置为0,将用于标识消息重复嵌入次数的标志Cnt_embed设置为0,对2D/3D视频的第i帧进行解码,并判断解码后的第i帧是否符合控制信息嵌入算法的处理条件。本发明能够解决现有方法中存在的隐写算法无法直接为隐蔽通信系统提供支持、不能直接应用于2D和3D视频的技术问题。

The invention discloses an information embedding method using 2D/3D video, comprising: acquiring 2D/3D video, receiving user-input embedded control information, messages and keys, and encapsulating the user-input message to generate multiple The bit string is used as a secret segment, and the embedded control information is encapsulated to generate a bit string, and the bit string generated in step (3) is encrypted using an encryption algorithm to generate an encrypted embedded control information secret segment, and a counter is set i=1, set the flag CI_flag used to identify the first complete embedding of the embedded control information to 0, set the flag Cnt_embed used to identify the number of repeated embeddings of the message to 0, and decode the i-th frame of the 2D/3D video, And judge whether the i-th frame after decoding meets the processing conditions of the control information embedding algorithm. The invention can solve the technical problem that the steganography algorithm in the existing method cannot directly provide support for the covert communication system and cannot be directly applied to 2D and 3D videos.

Description

一种使用2D/3D视频的信息嵌入系统和信息提取系统An information embedding system and information extraction system using 2D/3D video

技术领域technical field

本发明属于信息隐写、H.264编解码技术、以及计算机网络通信领域,更具体地,涉及一种使用2D/3D视频的信息嵌入系统和信息提取系统。The invention belongs to the fields of information steganography, H.264 encoding and decoding technology, and computer network communication, and more specifically relates to an information embedding system and an information extraction system using 2D/3D video.

背景技术Background technique

为了在发送方和接收方之间进行不露痕迹的隐蔽通信,国内外研究者提出了利用隐写算法对信息隐藏过程进行控制以实现秘密通信的方法。在当前已知的专利授权中针对隐蔽通信系统相关的方案主要可以分为两类。第一类主要是具体的隐写和隐写分析算法,并未讨论完整的隐蔽系统实现方案。经检索,目前涉及隐写算法的相关中国专利约66项,世界专利约115项。大多数方案为具体算法,嵌入时将秘密信息连续地嵌入在符合算法条件的位置上,提取时,针对所有符合算法条件的位置提取信息。第二类涉及完整的隐蔽通信系统,但隐蔽载体只是文本和音频,未使用2D或3D视频。在中国发明专利说明书CN101577619A中公开了一种语音信息隐藏实时保密通信系统,将信息隐藏、计算机、密码和通信等技术有机结合起来,通过连接公共电话网PSTN、移动通信GSM/CDMA、视频会议和VoIP网络,利用语音信息隐藏和提取算法,将MELP2.4KBps秘密语音隐藏在码激励线性预测编码G.721、G.728、GSM和G.729公共语音中,在公共通信信道中建立隐蔽信道进行秘密语音信息的实时保密通信。In order to conduct covert communication between the sender and the receiver without revealing traces, researchers at home and abroad have proposed a method of using steganographic algorithms to control the process of information hiding to achieve secret communication. In the currently known patent authorizations, the solutions related to the covert communication system can be mainly divided into two categories. The first category is mainly specific steganography and steganalysis algorithms, and does not discuss the complete implementation of the concealment system. After searching, there are currently about 66 related Chinese patents and about 115 world patents related to steganographic algorithms. Most of the schemes are specific algorithms. When embedding, the secret information is continuously embedded in the positions that meet the algorithm conditions. When extracting, information is extracted for all positions that meet the algorithm conditions. The second category involves complete covert communication systems, but the covert carrier is only text and audio, no 2D or 3D video is used. In the Chinese invention patent specification CN101577619A, a voice information hiding real-time confidential communication system is disclosed, which organically combines information hiding, computer, password and communication technologies, and connects the public telephone network PSTN, mobile communication GSM/CDMA, video conferencing and VoIP network uses voice information hiding and extraction algorithms to hide MELP2.4KBps secret voice in code-excited linear predictive coding G.721, G.728, GSM and G.729 public voice, and establishes a covert channel in the public communication channel. Real-time secure communication of secret voice messages.

当前的两类专利分别考虑了具体的隐写算法以及以文本、图像和音频为载体的隐蔽通信方案。前者主要是各种隐写算法,并未将其应用到实际的通信系统中,因而其缺点是:首先,算法的提出到系统的实现还需要大量的后续研究,其可行性和可实施性有待实践的进一步检验;其次各类隐写算法并没有给出具体的应用场合,使得其应用前景并不明朗。因此,大量隐写算法的提出,在一定程度上丰富了隐蔽通信实现的手段,但还不足以满足实际的隐蔽通信系统需要。。后者利用的载体主要是文本、图像以及音频,其方案不能直接应用于2D和3D视频,这是由于信息隐藏与其载体密切相关。在当前互联网飞速发展和2D/3D摄像技术大众化背景下,其方案大大制约了隐蔽通信系统在网络多媒体领域的进一步发展。The current two types of patents respectively consider specific steganography algorithms and covert communication schemes based on text, images and audio. The former is mainly a variety of steganographic algorithms, which have not been applied to the actual communication system, so its disadvantages are: first, a lot of follow-up research is needed from the algorithm proposal to the system realization, and its feasibility and implementability are yet to be solved. Further tests in practice; secondly, various steganographic algorithms have not given specific application occasions, making their application prospects unclear. Therefore, the proposal of a large number of steganography algorithms has enriched the means of implementing covert communication to a certain extent, but it is not enough to meet the needs of the actual covert communication system. . The carrier used by the latter is mainly text, image and audio, and its scheme cannot be directly applied to 2D and 3D video, because information hiding is closely related to its carrier. Under the background of the current rapid development of the Internet and the popularization of 2D/3D camera technology, its solution greatly restricts the further development of covert communication systems in the field of network multimedia.

发明内容Contents of the invention

针对现有技术的以上缺陷或改进需求,本发明提供了一种使用2D/3D视频的信息嵌入方法和系统,其目的在于,解决现有方法中存在的隐写算法无法直接为隐蔽通信系统提供支持问题以及现有方案不能直接应用于2D和3D视频的技术问题。Aiming at the above defects or improvement needs of the prior art, the present invention provides an information embedding method and system using 2D/3D video. Support issues and technical issues where existing solutions cannot be directly applied to 2D and 3D video.

为实现上述目的,按照本发明的一个方面,提供了一种使用2D/3D视频的信息嵌入方法,包括以下步骤:In order to achieve the above object, according to one aspect of the present invention, an information embedding method using 2D/3D video is provided, comprising the following steps:

(1)获取2D/3D视频,并接收用户输入的嵌入控制信息、消息和密钥;(1) Obtain 2D/3D video, and receive embedded control information, messages and keys input by the user;

(2)将用户输入的消息进行封装,以生成多个比特串作为密段,密段的总数量即为消息段数,且每个密段中包括段头标识符、段标识号、段数据长度、段数据和段尾标识符;(2) Encapsulate the message input by the user to generate multiple bit strings as encrypted segments. The total number of encrypted segments is the number of message segments, and each encrypted segment includes segment header identifier, segment identification number, and segment data length , segment data and end-of-segment identifier;

(3)将嵌入控制信息进行封装,以生成一个比特串,即嵌入控制信息密段,嵌入控制信息包括段头标志位,用户输入的嵌入控制信息,消息段数以及段尾标识符;(3) Encapsulate the embedded control information to generate a bit string, that is, the embedded control information secret segment. The embedded control information includes the segment header flag, the embedded control information input by the user, the message segment number and the segment tail identifier;

(4)使用加密算法对步骤(3)生成的比特串进行加密,以生成加密后的嵌入后的控制信息密段,并设置计数器i=1,将用于标识嵌入控制信息第一次完整嵌入的标志CI_flag设置为0,将用于标识消息重复嵌入次数的标志Cnt_embed设置为0;(4) Use an encryption algorithm to encrypt the bit string generated in step (3) to generate the encrypted embedded control information segment, and set the counter i=1, which will be used to identify the first complete embedding of the embedded control information The flag CI_flag is set to 0, and the flag Cnt_embed used to identify the repeated embedding times of the message is set to 0;

(5)对2D/3D视频的第i帧进行解码,并判断解码后的第i帧是否符合控制信息嵌入算法的处理条件,如果符合则转入步骤(6),否则转入步骤(7);(5) Decode the i-th frame of the 2D/3D video, and judge whether the decoded i-th frame meets the processing conditions of the control information embedding algorithm, if so, go to step (6), otherwise go to step (7) ;

(6)使用控制信息嵌入算法将步骤(4)生成的加密后的控制信息密段嵌入第i帧,并判断标志CI_flag是0还是1,如果是0则将该标志CI_flag设置为1,然后转入步骤(9),如果是1则直接转入步骤(9);(6) Use the control information embedding algorithm to embed the encrypted control information segment generated in step (4) into the i-th frame, and judge whether the flag CI_flag is 0 or 1, if it is 0, set the flag CI_flag to 1, and then turn to Go to step (9), if it is 1, go directly to step (9);

(7)判断标志CI_flag是否为1,且解码后的第i帧是否符合用户选择的嵌入算法的处理条件,如果CI_flag是1且符合处理条件则转入步骤(8),否则转入步骤(9);(7) Judging whether the flag CI_flag is 1, and whether the i-th frame after decoding meets the processing conditions of the embedding algorithm selected by the user, if CI_flag is 1 and meets the processing conditions, then go to step (8), otherwise go to step (9 );

(8)使用用户选择的嵌入算法将步骤(2)生成的多个消息密段嵌入第i帧,并判断是否全部嵌入,若是则设置标志Cnt_embed=Cnt_embed+1,然后转入步骤(9),否则转入步骤(9);(8) Use the embedding algorithm selected by the user to embed multiple message encryption segments generated in step (2) into the i-th frame, and judge whether all of them are embedded, if so, set the flag Cnt_embed=Cnt_embed+1, and then go to step (9), Otherwise go to step (9);

(9)将第i帧写入H.264格式的2D/3D视频文件;(9) Write the i-th frame into a 2D/3D video file in H.264 format;

(10)判断第i帧是否是2D/3D视频的最后一帧,如果是则表示已经生成含有消息的新2D/3D视频,然后转入步骤(11),否则设置i=i+1,然后返回步骤(5);(10) Determine whether the i-th frame is the last frame of the 2D/3D video, if it is, it means that a new 2D/3D video containing the message has been generated, and then go to step (11), otherwise set i=i+1, and then Return to step (5);

(11)判断标志Cnt_embed是否大于0,若是则向用户提示嵌入消息的冗余度等于Cnt_embed,否则向用户提示视频容量不足,需更换视频。(11) Determine whether the flag Cnt_embed is greater than 0, if so, prompt the user that the redundancy of the embedded message is equal to Cnt_embed, otherwise, prompt the user that the video capacity is insufficient and the video needs to be replaced.

优选地,步骤(2)中对用户输入的消息是通过以下格式进行封装:Preferably, the message input by the user in step (2) is encapsulated in the following format:

优选地,步骤(3)中将嵌入控制信息是通过以下格式进行封装:Preferably, the embedded control information in step (3) is encapsulated in the following format:

一种使用2D/3D视频的信息嵌入系统,包括:An information embedding system using 2D/3D video, including:

第一模块,用于获取2D/3D视频,并接收用户输入的嵌入控制信息、消息和密钥;The first module is used to obtain 2D/3D video, and receive embedded control information, messages and keys input by the user;

第二模块,用于将用户输入的消息进行封装,以生成多个比特串作为密段,密段的总数量即为消息段数,且每个密段中包括段头标识符、段标识号、段数据长度、段数据和段尾标识符;The second module is used to encapsulate the message input by the user to generate multiple bit strings as secret segments, the total number of secret segments is the number of message segments, and each secret segment includes a segment header identifier, a segment identification number, Segment data length, segment data and end-of-segment identifier;

第三模块,用于将嵌入控制信息进行封装,以生成一个比特串,即嵌入控制信息密段,嵌入控制信息包括段头标志位,用户输入的嵌入控制信息,消息段数以及段尾标识符;The third module is used for encapsulating the embedded control information to generate a bit string, that is, the embedded control information secret segment, the embedded control information includes the segment header flag, the embedded control information input by the user, the message segment number and the segment tail identifier;

第四模块,用于使用加密算法对第三模块生成的比特串进行加密,以生成加密后的嵌入后的控制信息密段,并设置计数器i=1,将用于标识嵌入控制信息第一次完整嵌入的标志CI_flag设置为0,将用于标识消息重复嵌入次数的标志Cnt_embed设置为0;The fourth module is used to encrypt the bit string generated by the third module using an encryption algorithm to generate the encrypted embedded control information segment, and set the counter i=1, which will be used to identify the first time the embedded control information The fully embedded flag CI_flag is set to 0, and the flag Cnt_embed used to identify the repeated embedding times of the message is set to 0;

第五模块,用于对2D/3D视频的第i帧进行解码,并判断解码后的第i帧是否符合控制信息嵌入算法的处理条件,如果符合则转入第六模块,否则转入第七模块;The fifth module is used to decode the i-th frame of the 2D/3D video, and judge whether the decoded i-th frame meets the processing conditions of the control information embedding algorithm, and if so, transfer to the sixth module, otherwise transfer to the seventh module;

第七模块,用于使用控制信息嵌入算法将第四模块生成的加密后的控制信息密段嵌入第i帧,并判断标志CI_flag是0还是1,如果是0则将该标志CI_flag设置为1,然后转入第九模块,如果是1则直接转入第九模块;The seventh module is used to embed the encrypted control information segment generated by the fourth module into the i-th frame using the control information embedding algorithm, and judge whether the flag CI_flag is 0 or 1, and if it is 0, set the flag CI_flag to 1, Then transfer to the ninth module, if it is 1, directly transfer to the ninth module;

第七模块,用于判断标志CI_flag是否为1,且解码后的第i帧是否符合用户选择的嵌入算法的处理条件,如果CI_flag是1且符合处理条件则转入步骤第八模块,否则转入第九模块;The seventh module is used to judge whether the flag CI_flag is 1, and whether the i-th frame after decoding meets the processing conditions of the embedding algorithm selected by the user, if CI_flag is 1 and meets the processing conditions, then go to step eighth module, otherwise go to Ninth module;

第八模块,用于使用用户选择的嵌入算法将第二模块生成的多个消息密段嵌入第i帧,并判断是否全部嵌入,若是则设置标志Cnt_embed=Cnt_embed+1,然后转入第九模块,否则转入第九模块;The eighth module is used to use the embedding algorithm selected by the user to embed a plurality of message encryption segments generated by the second module into the i-th frame, and judge whether they are all embedded, if so, set the sign Cnt_embed=Cnt_embed+1, and then transfer to the ninth module , otherwise transfer to the ninth module;

第九模块,用于将第i帧写入H.264格式的2D/3D视频文件;The ninth module is used to write the i-th frame into a 2D/3D video file in H.264 format;

第十模块,用于判断第i帧是否是2D/3D视频的最后一帧,如果是则表示已经生成含有消息的新2D/3D视频,然后转入第十一模块,否则设置i=i+1,然后返回第五模块;The tenth module is used to judge whether the i-th frame is the last frame of the 2D/3D video, if it is, it means that a new 2D/3D video containing the message has been generated, and then transfer to the eleventh module, otherwise set i=i+ 1, then return to the fifth module;

第十一模块,用于判断标志Cnt_embed是否大于0,若是则向用户提示嵌入消息的冗余度等于Cnt_embed,否则向用户提示视频容量不足,需更换视频。The eleventh module is used for judging whether the flag Cnt_embed is greater than 0, if so, prompting the user that the redundancy of the embedded message is equal to Cnt_embed, otherwise prompting the user that the video capacity is insufficient and the video needs to be replaced.

本发明的另一个目的在于提供一种使用2D/3D视频的信息提取方法和系统,其目的在于,解决现有方法中存在的隐写算法无法直接为隐蔽通信系统提供支持问题以及现有方案不能直接应用于2D和3D视频的技术问题。Another object of the present invention is to provide a method and system for information extraction using 2D/3D video. Technical issues that apply directly to 2D and 3D video.

按照本发明的另一方面,提供了一种使用2D/3D视频的信息提取方法,包括以下步骤:According to another aspect of the present invention, an information extraction method using 2D/3D video is provided, comprising the following steps:

(1)获取载密2D/3D视频,用户输入的提取秘钥,并判断秘钥是否正确,如果正确转入步骤(2),否则过程结束;(1) Obtain the encrypted 2D/3D video, extract the key input by the user, and judge whether the key is correct, if it is correct, go to step (2), otherwise the process ends;

(2)设置计数器i=1,将用于标识控制信息第一次完整提取的标志CI_flag设置为0,将用于标识消息完整提取的标志Extra_flag设置为0;(2) Set the counter i=1, set the flag CI_flag used to identify the first complete extraction of the control information to 0, and set the flag Extra_flag used to identify the complete extraction of the message to 0;

(3)对2D/3D视频的第i帧进行解码,判断标志CI_flag是否为0且解码后的第i帧是否符合控制信息提取算法的处理条件,如果标志CI_flag为0且符合提取算法处理条件,则转入步骤(4),否则转入步骤(5);(3) Decode the i-th frame of the 2D/3D video, judge whether the flag CI_flag is 0 and whether the decoded i-th frame meets the processing conditions of the control information extraction algorithm, if the flag CI_flag is 0 and meets the processing conditions of the extraction algorithm, Then go to step (4), otherwise go to step (5);

(4)使用控制信息提取算法提取控制信息密段,并将选择算法标识、算法条件、以及消息段数提取出来,并将CI_flag置为1;(4) Use the control information extraction algorithm to extract the control information secret segment, extract the selection algorithm identifier, algorithm conditions, and the number of message segments, and set CI_flag to 1;

(5)判断标志CI_flag是否为1,且解码后的第i帧是否符合提取算法的处理条件,如果CI_flag为1且符合处理条件则转入步骤(6),否则转入步骤(7);(5) Judging whether the flag CI_flag is 1, and whether the i-th frame after decoding meets the processing conditions of the extraction algorithm, if CI_flag is 1 and meets the processing conditions, then go to step (6), otherwise go to step (7);

(6)根据提取算法提取消息密段,并从密段中分析出段号和段数据;(6) According to the extraction algorithm, extract the secret segment of the message, and analyze the segment number and segment data from the secret segment;

(7)判断是否所有的消息密段都已提取,如果是则将标志Extra_flag设置为1,并向用户提示有新的消息需要接受,然后转入步骤(8),否则转入步骤(8);(7) Determine whether all the message secret segments have been extracted, if so, set the flag Extra_flag to 1, and prompt the user that there is a new message to be accepted, and then go to step (8), otherwise go to step (8) ;

(8)判断第i帧是否是2D/3D视频的最后一帧,如果是,然后转入步骤(9),否则设置i=i+1,然后返回步骤(3);(8) Determine whether the i-th frame is the last frame of the 2D/3D video, if yes, then go to step (9), otherwise set i=i+1, and then return to step (3);

(9)判断标志Extra_flag是否为1,如果是则向用户提示有新的消息需要接收,否则向用户提示观看时间段内未能提取到信息。(9) Determine whether the flag Extra_flag is 1, and if so, prompt the user that there is a new message to receive; otherwise, prompt the user that the information cannot be extracted within the viewing time period.

优选地,步骤(4)是按照如下格式将选择算法标识、算法条件、以及消息段数提取出来:Preferably, step (4) is to extract the selection algorithm identifier, algorithm condition, and number of message segments according to the following format:

优选地,步骤(6)是按照如下格式从密段中分析出段号和段数据:Preferably, step (6) is to analyze the segment number and segment data from the encrypted segment according to the following format:

一种使用2D/3D视频的信息提取系统,包括:An information extraction system using 2D/3D video, comprising:

第一模块,用于获取载密2D/3D视频,用户输入的提取秘钥,并判断秘钥是否正确,如果正确转入第二模块,否则过程结束;The first module is used to obtain the encrypted 2D/3D video, the extraction key input by the user, and judge whether the key is correct. If it is correct, it is transferred to the second module, otherwise the process ends;

第二模块,用于设置计数器i=1,将用于标识控制信息第一次完整提取的标志CI_flag设置为0,将用于标识消息完整提取的标志Extra_flag设置为0;The second module is used to set the counter i=1, set the flag CI_flag used to identify the first complete extraction of the control information to 0, and set the flag Extra_flag used to identify the complete extraction of the message to 0;

第三模块,用于对2D/3D视频的第i帧进行解码,判断标志CI_flag是否为0且解码后的第i帧是否符合控制信息提取算法的处理条件,如果标志CI_flag为0且符合提取算法处理条件,则转入第四模块,否则转入第五模块;The third module is used to decode the i-th frame of the 2D/3D video, judge whether the flag CI_flag is 0 and whether the decoded i-th frame meets the processing conditions of the control information extraction algorithm, if the flag CI_flag is 0 and meets the extraction algorithm If the processing conditions are met, then transfer to the fourth module, otherwise transfer to the fifth module;

第四模块,用于使用控制信息提取算法提取控制信息密段,并将选择算法标识、算法条件、以及消息段数提取出来,并将CI_flag置为1;The fourth module is used to use the control information extraction algorithm to extract the control information secret segment, extract the selection algorithm identification, algorithm conditions, and the number of message segments, and set CI_flag to 1;

第五模块,用于判断标志CI_flag是否为1,且解码后的第i帧是否符合提取算法的处理条件,如果CI_flag为1且符合处理条件则转入第六模块,否则转入第七模块;The fifth module is used to judge whether the sign CI_flag is 1, and whether the i-th frame after decoding meets the processing conditions of the extraction algorithm, if CI_flag is 1 and meets the processing conditions, then transfer to the sixth module, otherwise transfer to the seventh module;

第六模块,用于根据提取算法提取消息密段,并从密段中分析出段号和段数据;The sixth module is used to extract the message secret segment according to the extraction algorithm, and analyze the segment number and segment data from the secret segment;

第七模块,用于判断是否所有的消息密段都已提取,如果是则将标志Extra_flag设置为1,并向用户提示有新的消息需要接受,然后转入第八模块,否则转入第八模块;The seventh module is used to judge whether all the message encryption sections have been extracted, if so, the flag Extra_flag is set to 1, and the user is prompted that there is a new message to be accepted, and then transfers to the eighth module, otherwise transfers to the eighth module module;

第八模块,用于判断第i帧是否是2D/3D视频的最后一帧,如果是,然后转入第九模块,否则设置i=i+1,然后返回第三模块;The eighth module is used to judge whether the i-th frame is the last frame of the 2D/3D video, if yes, then transfer to the ninth module, otherwise set i=i+1, and then return to the third module;

第九模块,用于判断标志Extra_flag是否为1,如果是则向用户提示有新的消息需要接收,否则向用户提示观看时间段内未能提取到信息。The ninth module is used for judging whether the flag Extra_flag is 1, if so, prompting the user that there is a new message to be received, otherwise prompting the user that information cannot be extracted within the viewing time period.

总体而言,通过本发明所构思的以上技术方案与现有技术相比,能够取得下列有益效果:Generally speaking, compared with the prior art, the above technical solutions conceived by the present invention can achieve the following beneficial effects:

1、与一般加密通信相比,本发明不仅能隐藏数据本身(与加密通信相同),而且还能隐藏元数据(加密通信常常暴露加密行为本身)。1. Compared with general encrypted communication, the present invention can not only hide the data itself (same as encrypted communication), but also hide metadata (encrypted communication often exposes the encryption behavior itself).

2、与当前其它隐蔽通信方案相比,本发明作为隐蔽载体的2D/3D网络视频流约占互联网流量的90%,具有公开、大众、大量以及公用的属性,是隐蔽通信唾手可得的最佳伪装环境;2. Compared with other current covert communication schemes, the 2D/3D network video stream of the present invention as a covert carrier accounts for about 90% of the Internet traffic, has the attributes of openness, publicity, mass and publicity, and is the best camouflage for covert communication at your fingertips environment;

3、与当前其它隐蔽通信方案相比,本发明可以保证接收方边播放边提取,能保障隐蔽通信的实时性;3. Compared with other current covert communication schemes, the present invention can ensure that the receiving party extracts while playing, and can guarantee the real-time performance of covert communication;

4、与当前其它隐蔽通信方案相比,本发明可以保证接收方随时切入随时提取,能提高隐蔽通信的抗隐写分析能力;4. Compared with other current covert communication schemes, the present invention can ensure that the receiver can cut in and extract at any time, and can improve the anti-steganographic analysis ability of covert communication;

5、与当前其它隐蔽通信方案相比,本发明拥有一套具有知识产权的隐写算法,能保障隐写算法的有效性和多样性。5. Compared with other current covert communication schemes, the present invention has a set of steganographic algorithms with intellectual property rights, which can guarantee the effectiveness and diversity of the steganographic algorithms.

6、本发明可以应用在各种需要隐蔽通信的场合,如一般环境下的商业秘密隐蔽通信和个人隐私的隐蔽通信,以及特殊环境下的外交隐蔽通信和军事隐蔽通信,例如被对方国家强力监视监管下的驻外使馆或人员,以及常规军事通信手段受监受阻环境下的军事单位或人员。6. The present invention can be applied to various occasions that require covert communication, such as covert communication of commercial secrets and covert communication of personal privacy under general environment, and covert communication of diplomacy and military covert communication under special environment, such as being strongly monitored by the other country Embassies or personnel stationed abroad under supervision, and military units or personnel in environments where conventional military means of communication are supervised and obstructed.

附图说明Description of drawings

图1是本发明使用2D/3D视频的信息嵌入方法的流程图。FIG. 1 is a flow chart of the information embedding method using 2D/3D video in the present invention.

图2是本发明使用2D/3D视频的信息提取方法的流程图。FIG. 2 is a flow chart of the information extraction method using 2D/3D video in the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

如图1所示,本发明使用2D/3D视频的信息嵌入方法包括以下步骤:As shown in Figure 1, the information embedding method that the present invention uses 2D/3D video comprises the following steps:

(1)获取2D/3D视频,并接收用户输入的嵌入控制信息、消息和密钥;具体而言,用户输入的嵌入控制信息包括用户选择的嵌入算法和该算法相关的条件,本发明把发送方需要隐藏发送的信息称为“隐藏消息”,可简称为消息,并约定其最大长度为L≤4096汉字(或65536Bits),这已经满足一般情况下隐蔽通信的需要。为了加强隐蔽通信的鲁棒性和抗隐写分析性,把L分为若干消息段,每个消息段的长度为16个汉字(或256Bits),因此L最大可分为256个消息段;(1) Acquire 2D/3D video, and receive the embedded control information, message and key input by the user; specifically, the embedded control information input by the user includes the embedded algorithm selected by the user and the conditions related to the algorithm, and the present invention sends The information that the party needs to send hidden is called "hidden message", which can be referred to as a message for short, and the maximum length is agreed to be L≤4096 Chinese characters (or 65536Bits), which already meets the needs of covert communication under normal circumstances. In order to strengthen the robustness of covert communication and resist steganalysis, L is divided into several message segments, and the length of each message segment is 16 Chinese characters (or 256Bits), so L can be divided into a maximum of 256 message segments;

(2)按照如下格式(本说明书中称为格式1)将用户输入的消息进行封装,以生成多个比特串,本发明中将此步骤生成的一个比特串称为一个消息密段,密段的总数量即为消息段数,且每个密段中包括段头标识符、段标识号、段数据长度、段数据和段尾标识符;(2) Encapsulate the message input by the user according to the following format (referred to as format 1 in this specification) to generate multiple bit strings. In the present invention, a bit string generated by this step is called a message encryption segment, and the encryption segment The total number of is the number of message segments, and each encrypted segment includes segment header identifier, segment identification number, segment data length, segment data and segment tail identifier;

(3)按照如下格式(本说明书中称为格式2)将嵌入控制信息进行封装,以生成一个比特串,本发明中将该比特串称为嵌入控制信息密段;具体而言,嵌入控制信息包括段头标志位,用户输入的嵌入控制信息,消息段数以及段尾标识符,共64bit。(3) Encapsulate the embedded control information according to the following format (referred to as format 2 in this specification) to generate a bit string, which is called the embedded control information secret segment in the present invention; specifically, the embedded control information Including the segment header flag, the embedded control information input by the user, the message segment number and the segment end identifier, a total of 64 bits.

(4)使用非对称RSA算法对步骤(3)生成的比特串进行加密,以生成加密后的嵌入后的控制信息密段,并设置计数器i=1,将用于标识嵌入控制信息第一次完整嵌入的标志CI_flag设置为0,将用于标识消息重复嵌入次数的标志Cnt_embed设置为0;应当理解,该处用于加密的加密算法并不局限于RSA算法,也可以是其他加密算法。(4) Use the asymmetric RSA algorithm to encrypt the bit string generated in step (3) to generate the encrypted embedded control information segment, and set the counter i=1, which will be used to identify the first time the embedded control information The completely embedded flag CI_flag is set to 0, and the flag Cnt_embed used to identify the repeated embedding times of the message is set to 0; it should be understood that the encryption algorithm used for encryption here is not limited to the RSA algorithm, and can also be other encryption algorithms.

(5)对2D/3D视频的第i帧进行解码,并判断解码后的第i帧是否符合控制信息嵌入算法的处理条件,如果符合则转入步骤(6),否则转入步骤(7);(5) Decode the i-th frame of the 2D/3D video, and judge whether the decoded i-th frame meets the processing conditions of the control information embedding algorithm, if so, go to step (6), otherwise go to step (7) ;

(6)使用控制信息嵌入算法将步骤(4)生成的加密后的控制信息密段嵌入第i帧,并判断标志CI_flag是0还是1,如果是0则将该标志CI_flag设置为1,然后转入步骤(9),如果是1则直接转入步骤(9);(6) Use the control information embedding algorithm to embed the encrypted control information segment generated in step (4) into the i-th frame, and judge whether the flag CI_flag is 0 or 1, if it is 0, set the flag CI_flag to 1, and then turn to Go to step (9), if it is 1, go directly to step (9);

(7)判断标志CI_flag是否为1,且解码后的第i帧是否符合用户选择的嵌入算法的处理条件,如果CI_flag是1且符合处理条件则转入步骤(8),否则转入步骤(9);(7) Judging whether the flag CI_flag is 1, and whether the i-th frame after decoding meets the processing conditions of the embedding algorithm selected by the user, if CI_flag is 1 and meets the processing conditions, then go to step (8), otherwise go to step (9 );

(8)使用用户选择的嵌入算法将步骤(2)生成的多个消息密段嵌入第i帧,并判断是否全部嵌入,若是则设置标志Cnt_embed=Cnt_embed+1,然后转入步骤(9),否则转入步骤(9);(8) Use the embedding algorithm selected by the user to embed multiple message encryption segments generated in step (2) into the i-th frame, and judge whether all of them are embedded, if so, set the flag Cnt_embed=Cnt_embed+1, and then go to step (9), Otherwise go to step (9);

(9)将第i帧写入H.264格式的2D/3D视频文件;(9) Write the i-th frame into a 2D/3D video file in H.264 format;

(10)判断第i帧是否是2D/3D视频的最后一帧,如果是则表示已经生成含有消息的新2D/3D视频,然后转入步骤(11),否则设置i=i+1,然后返回步骤(5);(10) Determine whether the i-th frame is the last frame of the 2D/3D video, if it is, it means that a new 2D/3D video containing the message has been generated, and then go to step (11), otherwise set i=i+1, and then Return to step (5);

(11)判断标志Cnt_embed是否大于0,若是则向用户提示嵌入消息的冗余度等于Cnt_embed,否则向用户提示视频容量不足,需更换视频。(11) Determine whether the flag Cnt_embed is greater than 0, if so, prompt the user that the redundancy of the embedded message is equal to Cnt_embed, otherwise, prompt the user that the video capacity is insufficient and the video needs to be replaced.

本发明使用2D/3D视频的信息嵌入系统包括:The present invention uses the information embedding system of 2D/3D video to comprise:

第一模块,用于获取2D/3D视频,并接收用户输入的嵌入控制信息、消息和密钥;具体而言,用户输入的嵌入控制信息包括用户选择的嵌入算法和该算法相关的条件,本发明把发送方需要隐藏发送的信息称为“隐藏消息”,可简称为消息,并约定其最大长度为L≤4096汉字(或65536Bits),这已经满足一般情况下隐蔽通信的需要。为了加强隐蔽通信的鲁棒性和抗隐写分析性,把L分为若干消息段,每个消息段的长度为16个汉字(或256Bits),因此L最大可分为256个消息段;The first module is used to obtain 2D/3D video, and receive the embedded control information, message and key input by the user; specifically, the embedded control information input by the user includes the embedded algorithm selected by the user and the conditions related to the algorithm. The invention calls the information that the sender needs to send hidden as "hidden message", which can be referred to as a message for short, and agrees that its maximum length is L≤4096 Chinese characters (or 65536Bits), which has met the needs of covert communication in general. In order to strengthen the robustness of covert communication and resist steganalysis, L is divided into several message segments, and the length of each message segment is 16 Chinese characters (or 256Bits), so L can be divided into a maximum of 256 message segments;

第二模块,用于按照如下格式(本说明书中称为格式1)将用户输入的消息进行封装,以生成多个比特串,本发明中将此步骤生成的一个比特串称为一个消息密段,密段的总数量即为消息段数,且每个密段中包括段头标识符、段标识号、段数据长度、段数据和段尾标识符;The second module is used to encapsulate the message input by the user according to the following format (referred to as format 1 in this specification) to generate multiple bit strings. In the present invention, a bit string generated by this step is called a message encryption segment , the total number of encrypted segments is the number of message segments, and each encrypted segment includes segment header identifier, segment identification number, segment data length, segment data and segment tail identifier;

第三模块,用于按照如下格式(本说明书中称为格式2)将嵌入控制信息进行封装,以生成一个比特串,本发明中将该比特串称为嵌入控制信息密段;具体而言,嵌入控制信息包括段头标志位,用户输入的嵌入控制信息,消息段数以及段尾标识符,共64bit。The third module is used to encapsulate the embedded control information according to the following format (referred to as format 2 in this specification) to generate a bit string, which is called the embedded control information secret segment in the present invention; specifically, Embedded control information includes segment header flag, user-input embedded control information, number of message segments, and segment end identifier, totaling 64 bits.

第四模块,用于使用非对称RSA算法对第三模块生成的比特串进行加密,以生成加密后的嵌入后的控制信息密段,并设置计数器i=1,将用于标识嵌入控制信息第一次完整嵌入的标志CI_flag设置为0,将用于标识消息重复嵌入次数的标志Cnt_embed设置为0;应当理解,该处用于加密的加密算法并不局限于RSA算法,也可以是其他加密算法。The fourth module is used to encrypt the bit string generated by the third module using the asymmetric RSA algorithm to generate the encrypted embedded control information segment, and set the counter i=1, which will be used to identify the embedded control information Set the flag CI_flag for a complete embedding to 0, and set the flag Cnt_embed used to identify the number of repeated embeddings of the message to 0; it should be understood that the encryption algorithm used for encryption here is not limited to the RSA algorithm, and can also be other encryption algorithms .

第五模块,用于对2D/3D视频的第i帧进行解码,并判断解码后的第i帧是否符合控制信息嵌入算法的处理条件,如果符合则转入第六模块,否则转入第七模块;The fifth module is used to decode the i-th frame of the 2D/3D video, and judge whether the decoded i-th frame meets the processing conditions of the control information embedding algorithm, and if so, transfer to the sixth module, otherwise transfer to the seventh module;

第七模块,用于使用控制信息嵌入算法将第四模块生成的加密后的控制信息密段嵌入第i帧,并判断标志CI_flag是0还是1,如果是0则将该标志CI_flag设置为1,然后转入第九模块,如果是1则直接转入第九模块;The seventh module is used to embed the encrypted control information segment generated by the fourth module into the i-th frame using the control information embedding algorithm, and judge whether the flag CI_flag is 0 or 1, and if it is 0, set the flag CI_flag to 1, Then transfer to the ninth module, if it is 1, directly transfer to the ninth module;

第七模块,用于判断标志CI_flag是否为1,且解码后的第i帧是否符合用户选择的嵌入算法的处理条件,如果CI_flag是1且符合处理条件则转入步骤第八模块,否则转入第九模块;The seventh module is used to judge whether the flag CI_flag is 1, and whether the i-th frame after decoding meets the processing conditions of the embedding algorithm selected by the user, if CI_flag is 1 and meets the processing conditions, then go to step eighth module, otherwise go to Ninth module;

第八模块,用于使用用户选择的嵌入算法将第二模块生成的多个消息密段嵌入第i帧,并判断是否全部嵌入,若是则设置标志Cnt_embed=Cnt_embed+1,然后转入第九模块,否则转入第九模块;The eighth module is used to use the embedding algorithm selected by the user to embed a plurality of message encryption segments generated by the second module into the i-th frame, and judge whether they are all embedded, if so, set the sign Cnt_embed=Cnt_embed+1, and then transfer to the ninth module , otherwise transfer to the ninth module;

第九模块,用于将第i帧写入H.264格式的2D/3D视频文件;The ninth module is used to write the i-th frame into a 2D/3D video file in H.264 format;

第十模块,用于判断第i帧是否是2D/3D视频的最后一帧,如果是则表示已经生成含有消息的新2D/3D视频,然后转入第十一模块,否则设置i=i+1,然后返回第五模块;The tenth module is used to judge whether the i-th frame is the last frame of the 2D/3D video, if it is, it means that a new 2D/3D video containing the message has been generated, and then transfer to the eleventh module, otherwise set i=i+ 1, then return to the fifth module;

第十一模块,用于判断标志Cnt_embed是否大于0,若是则向用户提示嵌入消息的冗余度等于Cnt_embed,否则向用户提示视频容量不足,需更换视频。The eleventh module is used for judging whether the flag Cnt_embed is greater than 0, if so, prompting the user that the redundancy of the embedded message is equal to Cnt_embed, otherwise prompting the user that the video capacity is insufficient and the video needs to be replaced.

如图2所示,本发明使用2D/3D视频的信息提取方法包括以下步骤:As shown in Figure 2, the present invention uses the information extraction method of 2D/3D video to comprise the following steps:

(1)获取载密2D/3D视频,用户输入的提取秘钥,并判断秘钥是否正确,如果正确转入步骤(2),否则过程结束。(1) Obtain the encrypted 2D/3D video, extract the key input by the user, and judge whether the key is correct, if it is correct, go to step (2), otherwise the process ends.

(2)设置计数器i=1,将用于标识控制信息第一次完整提取的标志CI_flag设置为0,将用于标识消息完整提取的标志Extra_flag设置为0.(2) Set the counter i=1, set the flag CI_flag used to identify the first complete extraction of the control information to 0, and set the flag Extra_flag used to identify the complete extraction of the message to 0.

(3)对2D/3D视频的第i帧进行解码,判断标志CI_flag是否为0且解码后的第i帧是否符合控制信息提取算法的处理条件,如果标志CI_flag为0且符合提取算法处理条件,则转入步骤(4),否则转入步骤(5);(3) Decode the i-th frame of the 2D/3D video, judge whether the flag CI_flag is 0 and whether the decoded i-th frame meets the processing conditions of the control information extraction algorithm, if the flag CI_flag is 0 and meets the processing conditions of the extraction algorithm, Then go to step (4), otherwise go to step (5);

(4)使用控制信息提取算法提取控制信息密段,并按照如下格式(本发明将格式称为格式1)将选择算法标识、算法条件、以及消息段数提取出来,并将CI_flag置为1;(4) Use the control information extraction algorithm to extract the control information secret segment, and extract the selection algorithm identifier, algorithm condition, and message segment number according to the following format (the present invention refers to the format as format 1), and set CI_flag to 1;

(5)判断标志CI_flag是否为1,且解码后的第i帧是否符合提取算法的处理条件,如果CI_flag为1且符合处理条件则转入步骤(6),否则转入步骤(7);(5) Judging whether the flag CI_flag is 1, and whether the i-th frame after decoding meets the processing conditions of the extraction algorithm, if CI_flag is 1 and meets the processing conditions, then go to step (6), otherwise go to step (7);

(6)根据提取算法提取消息密段,并按照如下格式(本发明奖该格式称为格式2)从密段中分析出段号和段数据。(6) Extract the encrypted segment of the message according to the extraction algorithm, and analyze the segment number and segment data from the encrypted segment according to the following format (this format is referred to as format 2 in the present invention).

(7)判断是否所有的消息密段都已提取,如果是则将标志Extra_flag设置为1,并向用户提示有新的消息需要接受,然后转入步骤(8),否则转入步骤(8);(7) Determine whether all the message secret segments have been extracted, if so, set the flag Extra_flag to 1, and prompt the user that there is a new message to be accepted, and then go to step (8), otherwise go to step (8) ;

(8)判断第i帧是否是2D/3D视频的最后一帧,如果是,然后转入步骤(9),否则设置i=i+1,然后返回步骤(3);(8) Determine whether the i-th frame is the last frame of the 2D/3D video, if yes, then go to step (9), otherwise set i=i+1, and then return to step (3);

(9)判断标志Extra_flag是否为1,如果是则向用户提示有新的消息需要接收,否则向用户提示观看时间段内未能提取到信息。(9) Determine whether the flag Extra_flag is 1, and if so, prompt the user that there is a new message to receive; otherwise, prompt the user that the information cannot be extracted within the viewing time period.

本发明使用2D/3D视频的信息提取系统包括:The present invention uses the information extraction system of 2D/3D video to comprise:

第一模块,用于获取载密2D/3D视频,用户输入的提取秘钥,并判断秘钥是否正确,如果正确转入第二模块,否则过程结束。The first module is used to obtain the encrypted 2D/3D video, the extraction key input by the user, and judge whether the key is correct, if it is correct, transfer to the second module, otherwise the process ends.

第二模块,用于设置计数器i=1,将用于标识控制信息第一次完整提取的标志CI_flag设置为0,将用于标识消息完整提取的标志Extra_flag设置为0.The second module is used to set the counter i=1, set the flag CI_flag used to identify the first complete extraction of the control information to 0, and set the flag Extra_flag used to identify the complete extraction of the message to 0.

第三模块,用于对2D/3D视频的第i帧进行解码,判断标志CI_flag是否为0且解码后的第i帧是否符合控制信息提取算法的处理条件,如果标志CI_flag为0且符合提取算法处理条件,则转入第四模块,否则转入第五模块;The third module is used to decode the i-th frame of the 2D/3D video, judge whether the flag CI_flag is 0 and whether the decoded i-th frame meets the processing conditions of the control information extraction algorithm, if the flag CI_flag is 0 and meets the extraction algorithm If the processing conditions are met, then transfer to the fourth module, otherwise transfer to the fifth module;

第四模块,用于使用控制信息提取算法提取控制信息密段,并按照如下格式(本发明将格式称为格式1)将选择算法标识、算法条件、以及消息段数提取出来,并将CI_flag置为1;The fourth module is used to use the control information extraction algorithm to extract the control information secret section, and extract the selection algorithm identification, algorithm condition, and message segment number according to the following format (the present invention refers to the format as format 1), and set CI_flag as 1;

第五模块,用于判断标志CI_flag是否为1,且解码后的第i帧是否符合提取算法的处理条件,如果CI_flag为1且符合处理条件则转入第六模块,否则转入第七模块;The fifth module is used to judge whether the sign CI_flag is 1, and whether the i-th frame after decoding meets the processing conditions of the extraction algorithm, if CI_flag is 1 and meets the processing conditions, then transfer to the sixth module, otherwise transfer to the seventh module;

第六模块,用于根据提取算法提取消息密段,并按照如下格式(本发明奖该格式称为格式2)从密段中分析出段号和段数据。The 6th module is used for extracting message secret section according to extraction algorithm, and according to following format (the present invention award this format is referred to as format 2) from secret section, analyze section number and section data.

第七模块,用于判断是否所有的消息密段都已提取,如果是则将标志Extra_flag设置为1,并向用户提示有新的消息需要接受,然后转入第八模块,否则转入第八模块;The seventh module is used to judge whether all the message encryption sections have been extracted, if so, the flag Extra_flag is set to 1, and the user is prompted that there is a new message to be accepted, and then transfers to the eighth module, otherwise transfers to the eighth module module;

第八模块,用于判断第i帧是否是2D/3D视频的最后一帧,如果是,然后转入第九模块,否则设置i=i+1,然后返回第三模块;The eighth module is used to judge whether the i-th frame is the last frame of the 2D/3D video, if yes, then transfer to the ninth module, otherwise set i=i+1, and then return to the third module;

第九模块,用于判断标志Extra_flag是否为1,如果是则向用户提示有新的消息需要接收,否则向用户提示观看时间段内未能提取到信息。The ninth module is used for judging whether the flag Extra_flag is 1, if so, prompting the user that there is a new message to be received, otherwise prompting the user that information cannot be extracted within the viewing time period.

本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。It is easy for those skilled in the art to understand that the above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention, All should be included within the protection scope of the present invention.

Claims (4)

1.一种使用2D/3D视频的信息嵌入方法,其特征在于,包括以下步骤:1. An information embedding method using 2D/3D video, is characterized in that, comprises the following steps: (1)获取2D/3D视频,并接收用户输入的嵌入控制信息、消息和密钥;(1) Obtain 2D/3D video, and receive embedded control information, messages and keys input by the user; (2)将用户输入的消息进行封装,以生成多个比特串作为密段,密段的总数量即为消息段数,且每个密段中包括段头标识符、段标识号、段数据长度、段数据和段尾标识符;(2) Encapsulate the message input by the user to generate multiple bit strings as encrypted segments. The total number of encrypted segments is the number of message segments, and each encrypted segment includes segment header identifier, segment identification number, and segment data length , segment data and end-of-segment identifier; (3)将嵌入控制信息进行封装,以生成一个比特串,即嵌入控制信息密段,嵌入控制信息密段包括段头标识符,算法标志位,算法条件位,消息段数以及段尾标识符;(3) Encapsulating the embedded control information to generate a bit string, that is, the embedded control information secret section, the embedded control information secret section includes a header identifier, an algorithm flag bit, an algorithm condition bit, a message segment number and a segment tail identifier; (4)使用加密算法对步骤(3)生成的比特串进行加密,以生成加密后的嵌入控制信息密段,并设置计数器i=1,将用于标识嵌入控制信息第一次完整嵌入的标志CI_flag设置为0,将用于标识消息重复嵌入次数的标志Cnt_embed设置为0;(4) Use an encryption algorithm to encrypt the bit string generated in step (3) to generate the encrypted embedded control information secret segment, and set the counter i=1, which will be used to identify the first complete embedding of the embedded control information CI_flag is set to 0, and the flag Cnt_embed used to identify the repeated embedding times of the message is set to 0; (5)对2D/3D视频的第i帧进行解码,并判断解码后的第i帧是否符合控制信息嵌入算法的处理条件,如果符合则转入步骤(6),否则转入步骤(7);(5) Decoding the i-th frame of the 2D/3D video, and judging whether the decoded i-th frame meets the processing conditions of the control information embedding algorithm, if so, proceed to step (6), otherwise proceed to step (7) ; (6)使用控制信息嵌入算法将步骤(4)生成的加密后的嵌入控制信息密段嵌入第i帧,并判断标志CI_flag是0还是1,如果是0则将该标志CI_flag设置为1,然后转入步骤(9),如果是1则直接转入步骤(9);(6) Use the control information embedding algorithm to embed the encrypted embedded control information segment generated in step (4) into the i-th frame, and judge whether the sign CI_flag is 0 or 1, if it is 0, set the sign CI_flag to 1, and then Go to step (9), if it is 1, go to step (9) directly; (7)判断标志CI_flag是否为1,且解码后的第i帧是否符合用户选择的嵌入算法的处理条件,如果CI_flag是1且符合处理条件则转入步骤(8),否则转入步骤(9);(7) Whether the judgment mark CI_flag is 1, and whether the i-th frame after decoding meets the processing conditions of the embedding algorithm selected by the user, if CI_flag is 1 and meets the processing conditions, then proceed to step (8), otherwise proceed to step (9) ); (8)使用用户选择的嵌入算法将步骤(2)生成的多个消息密段嵌入第i帧,并判断是否全部嵌入,若是则设置标志Cnt_embed=Cnt_embed+1,然后转入步骤(9),否则直接转入步骤(9);(8) Embed the i-th frame with a plurality of message secret segments generated by step (2) using the embedding algorithm selected by the user, and judge whether all of them are embedded, if so, set the sign Cnt_embed=Cnt_embed+1, then proceed to step (9), Otherwise, go directly to step (9); (9)将第i帧写入H.264格式的2D/3D视频文件;(9) write the i-th frame into a 2D/3D video file in H.264 format; (10)判断第i帧是否是2D/3D视频的最后一帧,如果是则表示已经生成含有消息的新2D/3D视频,然后转入步骤(11),否则设置i=i+1,然后返回步骤(5);(10) judge whether the i-th frame is the last frame of the 2D/3D video, if it means that a new 2D/3D video containing the message has been generated, then proceed to step (11), otherwise set i=i+1, then Return to step (5); (11)判断标志Cnt_embed是否大于0,若是则向用户提示嵌入消息的冗余度等于Cnt_embed,否则向用户提示视频容量不足,需更换视频。(11) Determine whether the flag Cnt_embed is greater than 0, if so, prompt the user that the redundancy of the embedded message is equal to Cnt_embed, otherwise prompt the user that the video capacity is insufficient, and the video needs to be replaced. 2.根据权利要求1所述的信息嵌入方法,其特征在于,步骤(2)中对用户输入的消息是通过以下格式进行封装:8位段头标识符、8位段标识号、8位段数据长度、段数据、8位段尾标识符。2. The information embedding method according to claim 1, characterized in that, in the step (2), the message input by the user is encapsulated in the following format: 8-bit segment header identifier, 8-bit segment identification number, 8-bit segment Data length, segment data, 8-bit end-of-segment identifier. 3.根据权利要求1所述的信息嵌入方法,其特征在于,步骤(3)中将嵌入控制信息是通过以下格式进行封装:8位段头标识符、4位算法标志位、36位算法条件位、8位消息段数、8位段尾标识符。3. The information embedding method according to claim 1, wherein, in the step (3), the embedded control information is encapsulated in the following format: 8-bit segment header identifier, 4-bit algorithm flag, 36-bit algorithm condition bit, 8-bit message segment number, and 8-bit end-of-segment identifier. 4.一种使用2D/3D视频的信息嵌入系统,其特征在于,包括:4. An information embedding system using 2D/3D video, characterized in that it comprises: 第一模块,用于获取2D/3D视频,并接收用户输入的嵌入控制信息、消息和密钥;The first module is used to obtain 2D/3D video, and receive embedded control information, messages and keys input by the user; 第二模块,用于将用户输入的消息进行封装,以生成多个比特串作为密段,密段的总数量即为消息段数,且每个密段中包括段头标识符、段标识号、段数据长度、段数据和段尾标识符;The second module is used to encapsulate the message input by the user to generate multiple bit strings as secret segments, the total number of secret segments is the number of message segments, and each secret segment includes a segment header identifier, a segment identification number, Segment data length, segment data and end-of-segment identifier; 第三模块,用于将嵌入控制信息进行封装,以生成一个比特串,即嵌入控制信息密段,嵌入控制信息密段包括段头标志位,算法标志位,算法条件位,消息段数以及段尾标识符;The third module is used to encapsulate the embedded control information to generate a bit string, that is, the embedded control information secret segment, the embedded control information secret segment includes the header flag bit, the algorithm flag bit, the algorithm condition bit, the message segment number and the segment tail identifier; 第四模块,用于使用加密算法对第三模块生成的比特串进行加密,以生成加密后的嵌入控制信息密段,并设置计数器i=1,将用于标识嵌入控制信息第一次完整嵌入的标志CI_flag设置为0,将用于标识消息重复嵌入次数的标志Cnt_embed设置为0;The fourth module is used to encrypt the bit string generated by the third module using an encryption algorithm to generate the encrypted embedded control information segment, and set the counter i=1, which will be used to identify the first complete embedding of the embedded control information The flag CI_flag is set to 0, and the flag Cnt_embed used to identify the repeated embedding times of the message is set to 0; 第五模块,用于对2D/3D视频的第i帧进行解码,并判断解码后的第i帧是否符合控制信息嵌入算法的处理条件,如果符合则转入第六模块,否则转入第七模块;The fifth module is used to decode the i-th frame of the 2D/3D video, and judge whether the decoded i-th frame meets the processing conditions of the control information embedding algorithm, and if so, transfer to the sixth module, otherwise transfer to the seventh module; 第七模块,用于使用控制信息嵌入算法将第四模块生成的加密后的嵌入控制信息密段嵌入第i帧,并判断标志CI_flag是0还是1,如果是0则将该标志CI_flag设置为1,然后转入第九模块,如果是1则直接转入第九模块;The seventh module is used to use the control information embedding algorithm to embed the encrypted embedded control information segment generated by the fourth module into the i-th frame, and judge whether the flag CI_flag is 0 or 1, and if it is 0, set the flag CI_flag to 1 , and then transfer to the ninth module, if it is 1, directly transfer to the ninth module; 第七模块,用于判断标志CI_flag是否为1,且解码后的第i帧是否符合用户选择的嵌入算法的处理条件,如果CI_flag是1且符合处理条件则转入步骤第八模块,否则转入第九模块;The seventh module is used to judge whether the flag CI_flag is 1, and whether the i-th frame after decoding meets the processing conditions of the embedding algorithm selected by the user, if CI_flag is 1 and meets the processing conditions, then go to step eighth module, otherwise go to Ninth module; 第八模块,用于使用用户选择的嵌入算法将第二模块生成的多个消息密段嵌入第i帧,并判断是否全部嵌入,若是则设置标志Cnt_embed=Cnt_embed+1,然后转入第九模块,否则直接转入第九模块;The eighth module is used to embed a plurality of message encryption segments generated by the second module into the i-th frame using the embedding algorithm selected by the user, and judge whether all of them are embedded, if so, set the sign Cnt_embed=Cnt_embed+1, and then transfer to the ninth module , otherwise directly transfer to the ninth module; 第九模块,用于将第i帧写入H.264格式的2D/3D视频文件;The ninth module is used to write the i-th frame into a 2D/3D video file in H.264 format; 第十模块,用于判断第i帧是否是2D/3D视频的最后一帧,如果是则表示已经生成含有消息的新2D/3D视频,然后转入第十一模块,否则设置i=i+1,然后返回第五模块;The tenth module is used to judge whether the i-th frame is the last frame of the 2D/3D video, if it means that a new 2D/3D video containing the message has been generated, then transfer to the eleventh module, otherwise set i=i+ 1, then return to the fifth module; 第十一模块,用于判断标志Cnt_embed是否大于0,若是则向用户提示嵌入消息的冗余度等于Cnt_embed,否则向用户提示视频容量不足,需更换视频。The eleventh module is used for judging whether the flag Cnt_embed is greater than 0, if so, prompting the user that the redundancy of the embedded message is equal to Cnt_embed, otherwise prompting the user that the video capacity is insufficient and the video needs to be replaced.
CN201310717324.2A 2013-12-23 2013-12-23 A kind of information insertion system and information extracting system using 2D/3D video Active CN103731654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310717324.2A CN103731654B (en) 2013-12-23 2013-12-23 A kind of information insertion system and information extracting system using 2D/3D video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310717324.2A CN103731654B (en) 2013-12-23 2013-12-23 A kind of information insertion system and information extracting system using 2D/3D video

Publications (2)

Publication Number Publication Date
CN103731654A CN103731654A (en) 2014-04-16
CN103731654B true CN103731654B (en) 2015-08-26

Family

ID=50455559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310717324.2A Active CN103731654B (en) 2013-12-23 2013-12-23 A kind of information insertion system and information extracting system using 2D/3D video

Country Status (1)

Country Link
CN (1) CN103731654B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123945B (en) * 2014-06-12 2017-01-18 华中科技大学 Embedding method and extracting method for wav-format audio information
CN107809652B (en) * 2016-08-29 2020-02-18 中国人民解放军信息工程大学 A kind of implicit information transmission method, device and system
CN106686407B (en) * 2016-12-13 2019-07-23 北京互动百科网络技术股份有限公司 A kind of automatic identification encrypting and decrypting method and system for video data transmission
CN116132695A (en) * 2023-02-09 2023-05-16 郑州师范学院 Method and system for video steganography

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1512769A (en) * 2002-12-31 2004-07-14 天津大学 A video data duplication control system and method
CN101488852A (en) * 2009-01-13 2009-07-22 华中科技大学 IP voice concealed communication method based on m sequence
CN102158768A (en) * 2011-05-11 2011-08-17 上海交通大学 MP4 file encapsulation format-based video authentication watermark embedding and extraction method
CN102905134A (en) * 2012-10-22 2013-01-30 山东省计算中心 Adaptive video digital steganography method
CN103338385A (en) * 2012-02-08 2013-10-02 Vixs系统公司 Video processing system and corresponding method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1512769A (en) * 2002-12-31 2004-07-14 天津大学 A video data duplication control system and method
CN101488852A (en) * 2009-01-13 2009-07-22 华中科技大学 IP voice concealed communication method based on m sequence
CN102158768A (en) * 2011-05-11 2011-08-17 上海交通大学 MP4 file encapsulation format-based video authentication watermark embedding and extraction method
CN103338385A (en) * 2012-02-08 2013-10-02 Vixs系统公司 Video processing system and corresponding method
CN102905134A (en) * 2012-10-22 2013-01-30 山东省计算中心 Adaptive video digital steganography method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
图像信息隐藏与隐写分析算法的研究;李卓;《中国博士学位论文全文数据库 信息科技辑》;20110815;I138-7 *
基于H.264的视频水印的研究与应用;罗伟玲;《中国优秀硕士学位论文全文数据库 信息科技辑》;20130415;I138-57 *
视频隐写检测技术研究;孟铁东;《中国优秀硕士学位论文全文数据库 信息科技辑》;20100715;I138-768 *

Also Published As

Publication number Publication date
CN103731654A (en) 2014-04-16

Similar Documents

Publication Publication Date Title
Bhowal et al. A GA based audio steganography with enhanced security
CN102360413B (en) Steganographic method with misguiding function of controllable secret key sequence
CN105162686B (en) The hidden close communication means of polymorphic instant messages and system based on figure medium
CN102905134B (en) Adaptive video digital steganography method
CN109547663A (en) A kind of improvement LSB image latent writing method of combining cipher
CN106845242B (en) A Hidden Information Detection and Extraction Method Based on IS4 Software Features
CN103731654B (en) A kind of information insertion system and information extracting system using 2D/3D video
CN107886962B (en) A High Security Steganography Method Oriented to IP Voice
CN108683491A (en) A kind of information concealing method based on encryption and spatial term
CN102088611A (en) Fragile Watermark Embedding and Extraction Method Based on H.264 Standard Motion Vector
CN104269175B (en) A kind of ip voice steganography method matched based on Best similarity degree
Tian et al. Detecting bitrate modulation-based covert voice-over-IP communication
Zheng et al. Autoregressive linguistic steganography based on BERT and consistency coding
Bhowal et al. Audio steganography using GA
CN101860743A (en) Real-time digital video watermarking method based on MPEG-2 standard
CN104376236A (en) Scheme self-adaptive digital watermark embedding and extracting method based on camouflage technology
CN102522089B (en) Information embedding and extracting method for G.723.1 voice coder
CN111988639B (en) Video encryption and decryption method based on cryptographic algorithm and reversible steganography
Alsaadi et al. Text steganography in font color of MS excel sheet
CN102123327A (en) Method of digital watermark embedding and extraction based on streaming media non-key frame
CN101778289A (en) Method for embedding and extracting digital video information based on FLV (flash video) video structural feature
CN105141962B (en) A kind of Large Volume Data hidden method towards H.264/AVC video code flow
CN107071455A (en) Jpeg image information concealing method based on data flow
CN103617589B (en) A kind of information concealing method based on local histogram
CN117499030A (en) Ciphertext domain multi-party mobile information hiding method and system based on hybrid encryption

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant