CN107333139B - H.265 semi-reversible video steganography information method based on intra-frame prediction mode - Google Patents

H.265 semi-reversible video steganography information method based on intra-frame prediction mode Download PDF

Info

Publication number
CN107333139B
CN107333139B CN201710500918.6A CN201710500918A CN107333139B CN 107333139 B CN107333139 B CN 107333139B CN 201710500918 A CN201710500918 A CN 201710500918A CN 107333139 B CN107333139 B CN 107333139B
Authority
CN
China
Prior art keywords
prediction unit
secret information
video
block
information
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.)
Expired - Fee Related
Application number
CN201710500918.6A
Other languages
Chinese (zh)
Other versions
CN107333139A (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.)
Zhengzhou Normal University
Original Assignee
Zhengzhou Normal 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 Zhengzhou Normal University filed Critical Zhengzhou Normal University
Priority to CN201710500918.6A priority Critical patent/CN107333139B/en
Publication of CN107333139A publication Critical patent/CN107333139A/en
Application granted granted Critical
Publication of CN107333139B publication Critical patent/CN107333139B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression

Landscapes

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

Abstract

The invention discloses an H.265 semi-reversible video steganography method based on an intra-frame prediction mode, which comprises embedding and extracting; in the embedded portion: acquiring an original network video source file and secret information; preprocessing the secret information; selecting an embedding position for the purpose of distortion-free drift according to an optimal prediction mode during video coding and carrying out embedding modulation, wherein the embedded information is based on the preprocessed secret information until the embedded information is embedded into the tail part of the secret information; in the extraction section: acquiring a carrier video transmitted by a network, decoding the carrier video, determining an extraction position according to whether a prediction mode meets an extraction condition, and demodulating embedded secret information until the tail of the encountered information; recovering the extracted information to obtain original secret information; the H.265 semi-reversible video steganography method provided by the invention overcomes the distortion drift of the carrier video caused by embedding, and has good PSNR; the recovery of the video carrier is considered when extracting the secret information, and the method has the semi-reversible characteristic.

Description

H.265 semi-reversible video steganography information method based on intra-frame prediction mode
Technical Field
the invention belongs to the technical field of information security, and particularly relates to an H.265 semi-reversible video steganography information method based on an intra-frame prediction mode.
Background
In order to realize the covert communication in the network video transmission process, researchers at home and abroad propose a plurality of steganography algorithms for carrying out the covert communication by using network data streams in the existing network. The steganographic algorithms can be classified into three categories according to the existence of distortion drift and robustness, wherein the first category is a video steganographic algorithm without considering distortion drift, and focuses on the specific carrier video embedding position and the influence of the embedding capacity brought by the selected embedding position. The second type is a video steganography algorithm without distortion drift, which is proposed in consideration of distortion drift caused by embedding, but the concealed carriers are usually images, texts, audio videos and the like, are commonly used in the field of digital watermarking, are used for protecting the property rights of digital works, and pay attention to emphasizing the visual effect performance of the embedded carriers. The third category considers the robustness of video steganography, is focused on the aspects of modification and deletion of carrier works containing secret information, detectability of the secret information and the like, and can well resist processing such as shearing, rotation, compression and the like.
the second and third schemes respectively consider the video steganography undistorted drift algorithm and robustness, but take the h.264/AVC video coding and decoding standard as a starting point, do not fully consider the updating and updating of the mainstream video coding and decoding technology, have poor performance on the video coding compression rate, and particularly have higher and higher resolution requirements on the current video, and the high-definition video represented by 1080p gradually becomes the mainstream trend of the network video. The second and third schemes using h.264 video as the bearer cannot fully meet the contradiction between the requirements of low compression rate and high resolution. The existing video steganography method which is related to the first type of scheme and takes the H.265 coding and decoding standard as the starting point has the basic focus that syntax elements such as a prediction unit partition mode of a video or pixel-based predictive coding and the like are changed, the changeability of a carrier video is large, the video quality (subjective evaluation or PSNR) is low, the aim of steganography and secrecy of the video cannot be effectively achieved, meanwhile, the integrity of the carrier video is damaged by the operation and implementation of the carrier video, the carrier video cannot be restored, and the steganography analysis resistance capability is weak.
disclosure of Invention
in view of the above defects or improvement requirements of the prior art, the present invention provides an h.265 semi-reversible video steganography information method based on an intra-frame prediction mode, which aims to solve the problem that a video carrier is not recoverable in video steganography, and improve the visual quality of the video carrier on the premise of realizing covert communication.
To achieve the above object, according to an aspect of the present invention, there is provided an h.265 semi-reversible video steganography method based on an intra prediction mode, wherein the embedding method specifically includes the following steps:
(1) Acquiring a video source serving as a carrier video, and preprocessing the secret information to be embedded, including binarization, encryption and processing of adding an information termination bit;
(2) Compressing the carrier video, including predicting, transforming and quantizing the current prediction unit, and acquiring the prediction mode information of the neighboring blocks of the current prediction unit;
(3) Judging whether a 4x4 prediction unit block to be currently coded in a q-th frame of a carrier video meets an embedding condition or not;
if yes, entering the step (5); if not, judging whether a next 4x4 prediction unit block to be coded in the qth frame of the carrier video meets the embedding condition or not until the qth frame is traversed, and entering the step (4); wherein q is more than or equal to 0;
(4) judging whether the q frame is the last frame of the carrier video, if so, entering the step (6); if not, making q equal to q +1, and entering the step (3);
(5) embedding secret information in a 4 × 4 prediction unit block to be currently encoded according to a modulation method as follows:
if the coefficient Y of the 4x4 prediction unit blocki,jIs equal to N +1 or is not equal to N, the coefficients are updated as follows:
if the coefficient Y of the 4x4 prediction unit blocki,jis equal to N and the information to be embedded is 1, the coefficient Y is updated as followsi,j
If the coefficient Y of the 4x4 prediction unit blocki,jIs equal to N and the information to be embedded is 0, then Yi,jKeeping the same;
Wherein, Yi,jThe method comprises the steps that coefficients of i and j positions corresponding to a current 4x4 prediction unit block are obtained, N is a self-defined threshold, and a positive integer is selected;
(6) Judging whether the secret information to be embedded is completely embedded, if so, ending; if not, replacing the video source as the carrier video, and entering the step (2);
preferably, in the above embedding method, the embedding condition is that the following conditions are satisfied simultaneously:
a right neighbor of the 4x4 sub-block satisfies any one of prediction modes 26, 27, ·.. and 34;
The upper right neighbor of the 4x4 sub-block satisfies any one of prediction modes 10, 11, ·.. and 34, DC;
a lower right neighbor of the 4x4 sub-block satisfies any one of prediction modes 26, 27, a.. 9, 34,2, 3, a.. once.10, DC, Planar;
a next neighboring block of the 4x4 sub-block satisfies any one of prediction modes 2,3, ·.. and 10;
The lower left neighbor of the 4x4 sub-block satisfies any of prediction modes 2, 3.
preferably, in the above embedding method, it is determined whether the secret information is completely embedded according to whether the information termination bit of the secret information to be embedded is embedded, and if the information termination bit of the secret information is embedded, it is determined that the secret information to be embedded is completely embedded.
the invention provides an H.265 semi-reversible video steganography method based on an intra-frame prediction mode, which comprises the following steps:
(1) Acquiring a carrier video carrying secret information, configuring configuration parameters required by a decoder, including a code stream file appointed for decoding, and outputting the file;
(2) Decoding a q frame of a carrier video, and acquiring syntax element information comprising a prediction mode of a prediction unit and a residual coefficient matrix, wherein an initial value of q is 0;
(3) Judging whether the current prediction unit block in the q-th frame meets the extraction condition, if so, entering the step (4); if not, judging whether the next prediction unit block in the q frame meets the extraction condition or not until the q frame is traversed, and entering the step (5); wherein q is more than or equal to 0;
(4) secret information is extracted from the current prediction unit block and coefficients are updated according to the following demodulation method:
if it isorOr
then
If it isthe extracted secret information bit is 1,
And is
If it isthe extracted secret information bit is 0, andAnd not modified.
(5) judging whether the q frame is the last frame of the carrier video, if so, entering the step (6), otherwise, making q equal to q +1 and entering the step (2);
(6) judging whether the currently extracted secret information contains the head and the tail of the information, if so, finishing extraction; if not, the carrier video capacity is too small, and the secret information is not completely extracted, displaying and storing the extracted secret information, and entering the step (7);
(7) and removing the head and tail of the extracted secret information, decrypting, carrying out inverse binarization, and recovering the original secret information.
preferably, in the above extraction method, the extraction condition corresponds to an embedding condition, that is, the prediction modes of the neighboring blocks of the current 4 × 4 prediction unit block after decoding satisfy the condition: the 4x4 sub-block right neighbor block satisfies one of prediction modes 26, 27, and... and.34, the upper right neighbor block satisfies one of prediction modes 10, 11, and.9.. and.34, DC, the lower right neighbor block satisfies one of prediction modes 26, 27, and.9.. and.34, 2,3, and.3.. and.10, DC, Planar, the lower neighbor block satisfies one of prediction modes 2,3, and.10, and the lower left neighbor block satisfies one of prediction modes 2,3, and.3.
In general, compared with the prior art, the above technical solution contemplated by the present invention can achieve the following beneficial effects:
(1) the H.265 semi-reversible video steganography method based on the intra-frame prediction mode provided by the invention is characterized in that secret information is embedded before entropy coding; extracting the secret information corresponding to the embedded end immediately after the decoding end entropy decodes; performing decompression processing of the video data while extracting the secret information; compared with the existing video steganography method, the video steganography method is suitable for the international latest video coding and decoding standard H.265/HEVC, is in track with the latest technology in the video field, is suitable for the latest video coding and decoding standard, has extremely wide application environment, is easy to apply and hidden information is not easy to discover;
(2) Compared with other existing video steganography methods, the H.265 semi-reversible video steganography method based on the intra-frame prediction mode provided by the invention has the advantages that the distribution characteristics of the prediction modes of the adjacent prediction units of the video content are fully considered, the modification of the residual coefficient of the current prediction unit can be ensured not to be transmitted to the peripheral adjacent blocks of the current prediction unit in a prediction mode by setting the extraction condition and the embedding condition related to the prediction modes, the intra-frame distortion drift cannot be caused by embedding secret information in the current prediction unit, namely, any coefficient in the current prediction unit can be used as an embedding object without causing distortion drift, the video sensory distortion drift phenomenon caused by the embedded information is effectively prevented, the carrier video of the H.265 semi-reversible video steganography method has good visual effect, and the evaluation index PSNR of the carrier video is basically consistent with the original video;
(3) the H.265 semi-reversible video steganography method based on the intra-frame prediction mode, the modulation method and the demodulation method are suitable for the situation that the requirements on video carriers are severe, and have the advantage that the original carrier video is recovered as far as possible.
drawings
fig. 1 is a schematic general flowchart of an h.265 semi-reversible video steganography method based on an intra prediction mode according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an embedding method in a semi-reversible video steganography method provided by an embodiment;
FIG. 3 is an embedding error analysis diagram in the embodiment;
FIG. 4 is a diagram illustrating the prediction directions of 33 angle prediction modes in the H.265 international standard;
FIG. 5 is a diagram illustrating conditions that a prediction mode of a neighboring block of a current prediction unit should satisfy during embedding or extraction according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating an extraction flow in the semi-reversible video steganography method according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
fig. 1 is a schematic general flowchart of an h.265 semi-reversible video steganography method based on an intra-prediction mode according to an embodiment of the present invention, including stego information embedding and extraction.
Fig. 2 is a flowchart illustrating a method for embedding stego information in a semi-reversible video steganography method according to an embodiment; the method specifically comprises the following steps:
(1) acquiring a video source serving as a carrier video, and preprocessing the secret information to be embedded, including binarization, encryption and processing of adding an information termination bit;
In this embodiment, the head of the preprocessed secret information is 0x000001, and the tail is 0x 0001.
(2) carrying out compression processing on the carrier video, wherein the compression processing comprises prediction, transformation and quantization processing on a current prediction unit, and acquiring prediction mode information of a peripheral adjacent block of the current prediction unit before entropy coding of residual coefficient data of the current prediction unit;
(3) Judging whether the prediction mode of a prediction unit at the periphery of a 4 multiplied by 4 prediction unit block to be coded currently in a q frame of a carrier video meets an embedding condition or not, wherein q is more than or equal to 0; the coefficient values of the current 4 × 4 prediction unit blocks are not all 0;
if yes, entering step (5), and embedding data in the current 4 multiplied by 4 prediction unit block to be coded; if not, judging whether the next 4 multiplied by 4 prediction unit block in the current frame meets the embedding condition or not until the current frame is coded, and entering the step (4);
Wherein, the embedding condition is specifically as follows: simultaneously, the following conditions are met:
a right neighbor of the 4x4 sub-block satisfies any one of prediction modes 26, 27, ·.. and 34;
The upper right neighbor of the 4x4 sub-block satisfies any one of prediction modes 10, 11, ·.. and 34, DC;
a lower right neighbor of the 4x4 sub-block satisfies any one of prediction modes 26, 27, a.. 9, 34,2, 3, a.. once.10, DC, Planar;
a next neighboring block of the 4x4 sub-block satisfies any one of prediction modes 2,3, ·.. and 10;
A lower left neighbor of the 4x4 sub-block satisfies any one of prediction modes 2,3, ·.. and 26;
such as: if the prediction mode of the right adjacent block of a certain 4x4 prediction unit block is 27, the prediction mode of the right upper adjacent block is 10, the prediction mode of the right lower adjacent block is 26, the prediction mode of the lower adjacent block is 10 and the prediction mode of the left lower adjacent block is 2, the 4x4 prediction unit block can be used as the current prediction unit block to embed the secret information;
The prediction mode is a mode of predicting the pixel value of the current block by using the pixel values of the neighboring blocks, and the values 0 to 34 respectively represent the pixel values of the current block predicted from the pixel values of different positions or different directions of the neighboring blocks, and are specifically described in the h.265 standard document.
(4) judging whether the frame of the current information to be embedded is the last frame of the carrier video, if so, entering the step (6); if not, adding 1 to the sequence number q of the current frame, and entering the step (3);
(5) embedding is performed according to the following modulation method:
The 4x4 prediction unit blocks are traversed sequentially,
If the coefficient Y of the 4x4 prediction unit blocki,jis equal to N +1 or is not equal to N, the coefficients are updated as follows:
if the coefficient Y of the 4x4 prediction unit blocki,jIs equal to N and the information to be embedded is 1, the coefficient is updated as follows:
if the coefficient Y of the 4x4 prediction unit blocki,jIs equal to N and the information to be embedded is 0, then Yi,jNo modification is made;
Yi,jThe prediction unit block is a coefficient corresponding to the i, j position of the current 4 × 4 prediction unit block, the positive integer N is a self-defined threshold, and N in this embodiment is 0,1 or 2; i is 0,1,2, 3; j is 0,1,2, 3;
(6) judging whether the secret information to be embedded is completely embedded, if so, entering (7); if not, the capacity of the carrier video source is indicated to be too low, and the secret information is not completely embedded, replacing the video source serving as the carrier video, and entering the step (2);
judging whether the secret information is completely embedded according to whether the read tail part of the preprocessed secret information is embedded, and if the tail part of the secret information is embedded, judging that the secret information to be embedded is completely embedded;
(7) The embedded 4x4 prediction unit block is video entropy coded.
FIG. 3 is a diagram showing an embedding error analysis in the embodiment; according to the h.265/HEVC international standard, the prediction modes of the prediction unit have 35 modes in common, including a DC mode, a Planar mode, and thirty-three angular prediction modes {2,3,...,34}, where a schematic diagram of the prediction directions of the 33 angular prediction modes is shown in fig. 4; the 4x4 luminance block to be decoded is Bi,j,Bi,jprediction of (2)The value is determined by the decoded Bi-1,j-1、Bi-1,j、Bi-1,j+1、Bi,j-1、Bi-1,j+1the pixel value of the gray part and the intra-frame prediction mode adopted by the current prediction block are calculated together; the distortion drift of a 4x4 luminance block is conveyed to other peripheral neighbors by the information embedded edge pixel values; if the predicted value of the current block is calculated without adopting the edge pixel values of the adjacent blocks which hide secret information, the intra-frame distortion drift can be avoided; the conditions that should be satisfied by the prediction modes of the neighboring blocks based on the distortion-free drift condition are shown in fig. 5, and the conditions of the prediction modes are set to ensure that the modification of the residual coefficient data of the current prediction unit is not transmitted to the neighboring blocks in a prediction mode; embedding the secret message in the previous PU block does not cause distortion drift in the frame, i.e., any coefficient in the PU block can be used as an embedding object without causing distortion drift.
in order to minimize the visual error caused by embedding, the embedding can be performed according to the high-frequency coefficient in the frequency domain, specifically, the selected coefficient is Y at the lower right corner of the 4 × 4 residual coefficient sub-block03,Y12,Y13,Y21,Y22,Y23,Y30,Y31,Y32,Y33The coefficients at these locations are modulated and embedded as described above.
The following is illustrated with reference to examples: assume that the secret information is s1,s2,......,spPreprocessing the secret information to obtain secret information in the form of bit stream:
000000000000000000000001110101101010001111010110110111010000000000000001;
taking an official test video BasketbalPass. yuv as a carrier video, and judging whether the embedding condition is met or not according to the prediction mode of a neighboring block of a current prediction unit before entropy coding is carried out on the video source of the carrier video BasketbalPass; according to the embedding condition, the prediction Unit block when the address index of the first frame LCU (target Coded Unit) is 11 and the intra-block index is 64 satisfies the condition, and the prediction modes of the neighboring blocks are respectively as follows: the right adjacent block prediction mode is 31, the right lower adjacent block prediction mode is 3, the right upper prediction mode is 1, the lower adjacent block prediction mode is 3, and the left lower adjacent block prediction mode is DC; the residual coefficients of the current prediction unit are:
-2 3 0 0
7 -2 -2 0
-1 -3 -1 0
-2 1 -1 0
if the information to be embedded is 110, the residual coefficient matrix after embedding the secret information according to the above method is:
-2 3 0 0
7 -2 -3 0
-1 -3 -2 0
-3 2 -1 0
and performing video entropy coding processing on the embedded residual coefficient of the prediction unit.
fig. 6 is a flowchart of an extraction method of a video steganography method according to an embodiment, which specifically includes the following steps:
(1) Acquiring a carrier video carrying secret information, configuring configuration parameters required by a decoder, including a code stream file appointed for decoding, and outputting the file;
(2) Decoding a q frame of a carrier video, and acquiring syntax element information comprising a prediction mode of a prediction unit and a residual coefficient matrix, wherein an initial value of q is 0;
(3) judging whether the current prediction unit block meets the extraction condition, namely meeting the embedding condition of the embedding method step (3); if yes, entering the corresponding information extraction step (4); if not, judging whether the next 4 multiplied by 4 block prediction unit block meets the extraction condition;
In this embodiment, the extraction condition corresponds to an embedding condition during embedding, that is, the prediction modes of the neighboring blocks of the current 4 × 4 prediction unit block after decoding satisfy the following conditions: a 4x4 sub-block right neighbor block satisfies one of prediction modes 26, 27, and... ·,34, an upper right neighbor block satisfies one of prediction modes 10, 11, and..... and 34, DC, a lower right neighbor block satisfies one of prediction modes 26, 27, and.9.... and 34,2, 3, and.3.... and.10, DC, Planar, a lower neighbor block satisfies one of prediction modes 2,3, and.10, and a lower left neighbor block satisfies one of prediction modes 2,3, and.9.. and.26;
in this embodiment, the extraction corresponds to the modulation method in the embedding process, and the information extraction and coefficient restoration are performed by setting a threshold N (which is identical to the embedding process) and determining a specific numerical value of the residual coefficient; the extraction is carried out according to the following step (4):
(4) The method of extracting M' of the secret information is as follows:
If it isoror
then
If it isThe extracted bit is 1, and
if it isthe extracted bit is 0, andAnd not modified.
(5) judging whether the q frame is the last frame of the carrier video, if so, entering the step (6), otherwise, making q equal to q +1 and entering the step (2);
(6) Judging whether the currently extracted secret information contains the head and the tail of the information, if so, finishing extraction; subsequent decompression, video reconstruction and other processing can be continuously carried out; if not, the carrier video capacity is too small, and the secret information is not completely extracted, displaying and storing the extracted secret information, and entering the step (7);
(7) and removing the head and tail of the extracted secret information, decrypting, carrying out inverse binarization, and recovering the original secret information.
in order to smoothly extract information at the extraction end, the extraction processing can enter the step (3) after decoding information such as prediction mode information, residual coefficients and the like of the current prediction unit and the peripheral prediction units to judge whether the extraction condition is met, and the information extraction modulation is carried out on the prediction unit blocks meeting the extraction condition according to the step (4);
in the step (4)Means Y03,Y12,Y13,Y21,Y22,Y23,Y30,Y31,Y32,Y33the threshold N is 1.
the following is illustrated with reference to examples: the received code stream file is BasketbalPass, and after the prediction mode and residual coefficient information of the entropy decoding prediction unit are finished, the prediction unit of the current embedded secret information is determined to be a first frame LCU address index of 11, and an intra-block index of 64; and performing an extraction process on the secret information embedded into the current prediction unit when the entropy decoding reaches a prediction unit block at the lower right of the current prediction unit, namely when the intra-block index is 67, and obtaining that the prediction unit block with the current intra-block index of 64 meets the extraction condition. The residual coefficient matrix obtained to the prediction unit is:
-2 3 0 0
7 -2 -3 0
-1 -3 -2 0
-3 2 -1 0
the secret information bit stream extracted by the extraction method is as follows: 110; the modulated residual coefficient matrix is:
-2 3 0 0
7 -2 -2 0
-1 -2 -1 0
-2 1 -1 0
And continuing to extract the secret information of the subsequent prediction unit residual error coefficient matrix by adopting the extraction method until the information termination bit is extracted, thereby completing the extraction of the secret information.
It will be understood by those skilled in the art that the foregoing is only a preferred embodiment of the present invention, and is not intended to limit the invention, and that any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (5)

1. A H.265 semi-reversible video steganography information method based on an intra-frame prediction mode comprises embedding and extraction, and is characterized in that the embedding method specifically comprises the following steps:
(I) acquiring a video source serving as a carrier video, and preprocessing secret information to be embedded;
(II) compressing the carrier video to obtain the prediction mode information of the neighboring blocks of the current prediction unit;
(III) judging whether a 4x4 prediction unit block to be currently coded in the qth frame of the carrier video meets the embedding condition;
if yes, entering step (V); if not, judging whether a next 4 multiplied by 4 prediction unit block to be coded in the qth frame of the carrier video meets the embedding condition or not until the qth frame is traversed, and entering the step (IV); wherein q is more than or equal to 0;
(IV) judging whether the q frame is the last frame of the carrier video, if so, entering the step (VI); if not, making q equal to q +1, and entering the step (III);
(V) embedding secret information in a 4 × 4 prediction unit block currently to be encoded according to a modulation method as follows:
if the coefficients of the 4x4 prediction unit blockIs equal to N +1 or is not equal to N, the coefficients are updated as follows:
if the coefficients of the 4x4 prediction unit blockis equal to N and the bit of the secret information to be embedded is 1, the coefficient is updated as follows
If the coefficients of the 4x4 prediction unit blockIs equal to N and the bit of the secret information to be embedded is 0, thenkeeping the same;
wherein,The method comprises the steps that coefficients of i and j positions corresponding to a current 4x4 prediction unit block are obtained, N is a threshold value, and a positive integer is selected;
(VI) judging whether the secret information to be embedded is completely embedded, if so, ending; if not, replacing the video source as the carrier video, and entering the step (II).
2. The h.265 semi-reversible video steganography information method according to claim 1, wherein the embedding condition is such that the following conditions are simultaneously satisfied:
a right neighbor of the 4x4 sub-block satisfies any one of the prediction unit prediction modes 26, 27, · and 34 in the h.265/HEVC international standard;
The upper right neighboring block of the 4x4 sub-block satisfies any one of prediction unit prediction modes 10, 11,. and 34, DC in the h.265/HEVC international standard;
A lower right neighbor of the 4x4 sub-block satisfies any one of prediction unit prediction modes 26, 27, 9, 34,2, 3, 10, DC, Planar in the h.265/HEVC international standard;
the next adjacent block of the 4x4 sub-block meets any one of prediction unit prediction modes 2,3, 10 in the H.265/HEVC international standard;
the lower left neighbor of the 4x4 sub-block satisfies any one of prediction unit prediction modes 2,3, and 26 in the h.265/HEVC international standard.
3. the h.265 semi-reversible video steganography information method according to claim 1 or 2, wherein whether the secret information is completely embedded is judged according to whether an information termination bit of the secret information to be embedded is embedded, and if the information termination bit of the secret information is embedded, it is judged that the secret information to be embedded is completely embedded.
4. the h.265 semi-reversible video steganography information method according to claim 1, wherein the extraction method comprises the steps of:
(i) acquiring a carrier video carrying secret information, configuring configuration parameters required by a decoder, including a code stream file appointed for decoding, and outputting the file;
(ii) decoding a q frame of a carrier video, and acquiring syntax element information comprising a prediction mode of a prediction unit and a residual coefficient matrix, wherein an initial value of q is 0;
(iii) judging whether the current prediction unit block in the q frame meets the extraction condition, if so, entering the step (iv); if not, judging whether the next prediction unit block in the q frame meets the extraction condition or not until the q frame is traversed, and entering the step (v); wherein q is more than or equal to 0;
(iv) secret information is extracted from the current prediction unit block and coefficients are updated according to the following demodulation method:
if it isorOr
then
If it isThe extracted secret information bit is 1,
And is
if it isThe extracted secret information bit is 0, andNot modified;
(v) judging whether the q frame is the last frame of the carrier video, if so, entering the step (vi), otherwise, making q equal to q +1 and entering the step (ii);
(vi) judging whether the currently extracted secret information contains a head part and a tail part, if so, finishing extraction; if not, displaying and saving the extracted secret information, and entering step (vii);
(vii) and removing the head and the tail of the extracted secret information, carrying out inverse binarization, and carrying out decryption processing to recover the original secret information.
5. The h.265 semi-reversible video steganography information method according to claim 4, wherein the extraction conditions are specifically: the peripheral neighboring block prediction modes of the decoded current 4 × 4 prediction unit block simultaneously satisfy the condition:
the 4x4 sub-block right neighbor block satisfies one of prediction unit prediction modes 26, 27, and 34 in the h.265/HEVC international standard, the upper right neighbor block satisfies one of prediction unit prediction modes 10, 11, and 34, DC in the h.265/HEVC international standard, the lower right neighbor block satisfies one of prediction unit prediction modes 26, 27, and 34,2, 3, and 10, DC, and Planar in the h.265/HEVC international standard, the lower right neighbor block satisfies one of prediction unit prediction modes 2,3, and 10, and the lower left neighbor block satisfies one of prediction unit prediction modes 2,3, and 26 in the h.265/HEVC international standard.
CN201710500918.6A 2017-06-27 2017-06-27 H.265 semi-reversible video steganography information method based on intra-frame prediction mode Expired - Fee Related CN107333139B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710500918.6A CN107333139B (en) 2017-06-27 2017-06-27 H.265 semi-reversible video steganography information method based on intra-frame prediction mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710500918.6A CN107333139B (en) 2017-06-27 2017-06-27 H.265 semi-reversible video steganography information method based on intra-frame prediction mode

Publications (2)

Publication Number Publication Date
CN107333139A CN107333139A (en) 2017-11-07
CN107333139B true CN107333139B (en) 2019-12-13

Family

ID=60197764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710500918.6A Expired - Fee Related CN107333139B (en) 2017-06-27 2017-06-27 H.265 semi-reversible video steganography information method based on intra-frame prediction mode

Country Status (1)

Country Link
CN (1) CN107333139B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174241B (en) * 2017-12-22 2021-05-11 武汉益模科技股份有限公司 Video playing encryption method and system
CN109803143A (en) * 2018-10-16 2019-05-24 曙光云计算集团有限公司 A kind of pair of video carries out the hiding method of frame information and device
CN114710661A (en) 2019-09-20 2022-07-05 杭州海康威视数字技术股份有限公司 Decoding and encoding method, device and equipment
CN110971910A (en) * 2019-12-10 2020-04-07 郑州师范学院 Embedding method and extracting method for HEVC video information hiding
CN111432217B (en) * 2020-03-26 2022-08-05 郑州师范学院 Information hiding embedding and extracting method based on two-dimensional histogram translation

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8599929B2 (en) * 2009-01-09 2013-12-03 Sungkyunkwan University Foundation For Corporate Collaboration Distributed video decoder and distributed video decoding method
CN101621692B (en) * 2009-07-27 2011-04-20 宁波大学 H.264/AVC video information hiding method based on predictive mode
CN102223540B (en) * 2011-07-01 2012-12-05 宁波大学 Information hiding method facing to H.264/AVC (automatic volume control) video
CN104410864B (en) * 2014-11-07 2018-08-14 太原科技大学 Error concealing method based on residual energy in HEVC
CN104581176B (en) * 2014-12-26 2017-07-07 宁波大学 The insertion of H.264/AVC compression domain robust video watermark and extracting method without frame in error drift
CN105872555B (en) * 2016-03-25 2019-01-15 中国人民武装警察部队工程大学 A kind of steganalysis algorithm for the insertion of H.264 video motion vector information
CN106817586B (en) * 2016-12-22 2019-06-18 宁波工程学院 A kind of H.264/AVC video reversible data concealing method

Also Published As

Publication number Publication date
CN107333139A (en) 2017-11-07

Similar Documents

Publication Publication Date Title
CN107333139B (en) H.265 semi-reversible video steganography information method based on intra-frame prediction mode
CN107318022B (en) video steganography method based on H.265 standard undistorted drift
CN104581176B (en) The insertion of H.264/AVC compression domain robust video watermark and extracting method without frame in error drift
CN106101714B (en) A kind of and tightly coupled H.264 video information hiding method of compression encoding process
CN105741224A (en) Reversible watermarking algorithm based on PVO (Pixel Value Ordering) and self-adaptive block segmentation
CN109819260B (en) Video steganography method and device based on multi-embedded domain fusion
Wang et al. An Information Hiding Algorithm for HEVC Based on Angle Differences of Intra Prediction Mode.
CN103152578A (en) H.264 video watermark embedding and extraction method based on mixed coding/decoding
Fu Robust oblivious image watermarking scheme based on coefficient relation
CN108965887A (en) A kind of video information hiding method and device based on uncoupling between block
CN112714231A (en) Robust steganography method based on DCT (discrete cosine transformation) symbol replacement
Zhang et al. Adaptive loop filter with temporal prediction
CN105915912A (en) Fragile watermark embedding and detection method of MPEG-2 compressed domain video
Galiano et al. Efficient embedding and retrieval of information for high-resolution videos coded with HEVC
Weng et al. Reversible watermarking based on multiple prediction modes and adaptive watermark embedding
Chen et al. Robust drift-free bit-rate preserving H. 264 watermarking
Shahid et al. Spread spectrum-based watermarking for Tardos code-based fingerprinting for H. 264/AVC video
CN107197298A (en) A kind of reversible steganography method of HEVC videos of the undistorted drift based on multi-component system
CN113329229A (en) High-capacity hiding method for H.265 video information with high-efficiency fidelity
US8228993B2 (en) System and method for encoding and decoding information in digital signal content
CN104902281A (en) Hamming code plus one-based information hiding method of HEVC video
CN114598887A (en) Anti-recompression video watermarking method for controlling bit rate increase
CN110113605A (en) A kind of video error coverage method hiding based on histogram translation reversible information
Veličković et al. A secured digital video watermarking in chrominance channel
Rodríguez et al. Intra-steganography: Hiding data in high-resolution videos

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191213

Termination date: 20200627

CF01 Termination of patent right due to non-payment of annual fee