CN107333139A - A kind of H.265 half invertible video steganography information approach based on intra prediction mode - Google Patents
A kind of H.265 half invertible video steganography information approach based on intra prediction mode Download PDFInfo
- Publication number
- CN107333139A CN107333139A CN201710500918.6A CN201710500918A CN107333139A CN 107333139 A CN107333139 A CN 107333139A CN 201710500918 A CN201710500918 A CN 201710500918A CN 107333139 A CN107333139 A CN 107333139A
- Authority
- CN
- China
- Prior art keywords
- mrow
- msub
- mover
- mtd
- embedded
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/46—Embedding additional information in the video signal during the compression process
- H04N19/467—Embedding additional information in the video signal during the compression process characterised by the embedded information being invisible, e.g. watermarking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods 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/17—Methods 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/176—Methods 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/593—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/70—Methods 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/85—Methods 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 a kind of H.265 half invertible video steganography method based on intra prediction mode, embedded and extraction is included;In embedded part:Obtain primitive network video source file and secret information;Secret information is pre-processed;Embedded location is chosen for the purpose of undistorted drift according to optimum prediction mode during Video coding and carries out being embedded in modulation, embedded information is defined by pretreated secret information, untill secret information afterbody is embedded into;Extracting part:The carrier video Jing Guo network transmission is obtained, carrier video is decoded and whether meets extraction conditions according to predictive mode to determine to extract position, embedded secret information is demodulated until meeting information afterbody;Original private information is obtained to the Information recovering of extraction;The H.265 half invertible video steganography method that the present invention is provided overcomes embedded caused carrier video and distortion drift occurs, with good PSNR;The recovery of video carrier is considered when extracting secret information, with half reversible feature.
Description
Technical field
The invention belongs to field of information security technology, more particularly, to it is a kind of based on intra prediction mode H.265 half
Invertible video steganography information approach.
Background technology
In order to realize the secret communication in Internet video transmittance process, domestic and international researcher proposes a lot using existing
There is the network data flow in network to carry out the steganographic algorithm of secret communication.These steganographic algorithms foundation has undistorted drift motion and Shandong
Rod performance can be divided into three classes, and the first kind is the video steganographic algorithm for not considering undistorted drift, and it is focused on specific carrier and regarded
Frequency embedded location, and the influence of embedding capacity that the embedded location chosen is brought.Equations of The Second Kind is to consider insertion to be brought
The video steganographic algorithm of undistorted drift that proposes of distortion drift, but hidden carrier is typically image, text, audio frequency and video
Deng, it is usually used in digital watermarking field, the property right protection for carrying out copyright, it focuses on emphasizing embedded carrier vision effect
Fruit performance.3rd class considers the robust performance of video steganography, is absorbed in the carrier works containing secret information and is changed, deleted
And in terms of the detectability of secret information, can well resist the processing such as shearing, rotation, compression.
Second, third above-mentioned class scheme considers the undistorted shift algorithm of video steganography and robustness respectively, but it is
Using H.264/AVC video encoding and decoding standard as starting point, the update of major video encoding and decoding technique is not taken into full account,
Poor-performing in Video coding compression ratio, particularly the resolution requirements more and more higher in video now, using 1080p as representative
HD video has been increasingly becoming the main trend of Internet video.And second, third class scheme using H.264 video as carrying without
Method fully meets little compressible and high-resolution demand contradictory.Related to first kind scheme is existing with H.265 encoding and decoding
Standard be starting point video steganography method, but due to its basic focus be change video predicting unit partition mode or
The syntax elements such as the predictive coding based on pixel, the change for carrier video is larger, its video quality (subjective assessment or
PSNR it is) relatively low, it is impossible to effectively achieve the purpose of video steganography crypticity, while its operation is implemented to destroy the complete of carrier video
Whole property, carrier video can not be reduced, and anti-steganalysis ability is weak.
The content of the invention
For the disadvantages described above or Improvement requirement of prior art, the invention provides a kind of based on intra prediction mode
H.265 half invertible video steganography information approach, its object is to solve the problem of video carrier is unreducible in video steganography,
Video carrier visual quality is improved on the premise of realizing secret communication.
To achieve the above object, according to one aspect of the present invention there is provided it is a kind of based on intra prediction mode H.265
Half invertible video steganography method, its embedding grammar specifically includes following steps:
(1) video source as carrier video is obtained, and is pre-processed to intending embedded secret information, including binary system
Change, encryption and the processing for adding end-of-message position;
(2) processing is compressed to carrier video, including current prediction unit is predicted, transform and quantization processing, obtain
The prediction mode information of current prediction unit periphery neighbour's block;
(3) judge whether current 4 × 4 predicting unit blocks to be encoded of q frame ins of carrier video meet embedded condition;
If so, then entering step (5);If it is not, then judging next 4 × 4 predictions to be encoded of q frame ins of carrier video
Whether cell block meets embedded condition, until having traveled through q frames, into step (4);Wherein, q >=0;
(4) judge whether q frames are the last frame of carrier video, if so, then entering step (6);If it is not, then making q=q
+ 1, into step (3);
(5) secret information is embedded in current 4 × 4 predicting unit blocks to be encoded according to following modulator approach:
If the coefficient Y of 4 × 4 predicting unit blocksi,jAbsolute value be equal to and N+1 or be not equal to N, then update coefficient as the following formula:
If the coefficient Y of 4 × 4 predicting unit blocksi,jAbsolute value to be equal to N and information to be embedded be 1, then update system as the following formula
Number Yi,j:
If the coefficient Y of 4 × 4 predicting unit blocksi,jAbsolute value to be equal to N and information to be embedded be 0, then Yi,jKeep constant;
Wherein, Yi,jRefer to current 4 × 4 predicting unit block correspondence i, the coefficient of j positions, N is self-defined threshold value, is taken just whole
Number;
(6) judge to intend whether embedded secret information has fully embedded into, if so, then terminating;If it is not, then changing as carrier
The video source of video, into step (2);
Preferably, in above-mentioned embedding grammar, embedded condition is while meets following condition:
The right adjacent block of 4x4 sub-blocks meet predictive mode 26,27 ..., any one in 34;
The adjacent block of the upper rights of 4x4 sub-blocks meet predictive mode 10,11 ..., any one in 34, DC;
The adjacent block in the bottom rights of 4x4 sub-blocks meet predictive mode 26,27 ..., 34,2,3 ..., 10, DC, Planar
In any one;
The lower adjacent block of 4x4 sub-blocks meet predictive mode 2,3 ..., 10 any one;
The adjacent block in the lower-lefts of 4x4 sub-blocks meet predictive mode 2,3 ..., any one in 26.
Preferably, in above-mentioned embedding grammar, sentence according to whether the end-of-message position for intending embedded secret information is embedded in
Whether disconnected secret information has been completely embedded into, if the end-of-message position of secret information has been embedded in, and judges to intend embedded secret letter
Breath has had fully embedded into.
The H.265 half invertible video steganography method based on intra prediction mode that the present invention is provided, its extracting method is specific
Comprise the following steps:
(1) the carrier video for being loaded with secret information is obtained, and configures the configuration parameter needed for decoder, including specifies decoding
ASCII stream file ASCII, output file;
(2) the q frames of carrier video are decoded, acquisition includes predictive mode, the residual error coefficient matrix of predicting unit
Syntax element information, q initial value is 0;
(3) judge whether q frame in current prediction unit blocks meet extraction conditions, if so, then entering step (4);If it is not,
Then judge whether the next predicting unit block of q frame ins meets extraction conditions, until q frames have been traveled through, into step (5);Its
In, q >=0;
(4) secret information is extracted from current prediction unit block according to following demodulation method and updates coefficient:
IfOrOr
Then
IfThe secret information bit then extracted is 1,
And
IfThe secret information bit then extracted is 0, andDo not change.
(5) judge whether q frames are the last frame of carrier video, if so, then entering step (6), if it is not, then making q=q
+ 1 and enter step (2);
(6) judge whether the secret information currently extracted includes head and the afterbody of information, if so, then terminating to extract;
If it is not, showing that carrier video capacity is very few, secret information is not extracted completely, then shows and preserve the secret information extracted, enter
Enter step (7);
(7) secret information extracted is carried out removing information header, afterbody, decryption processing, inverse binarization is recovered original
Secret information.
Preferably, in said extracted method, extraction conditions are corresponding with embedded condition, that is, current 4 × 4 prediction is single after decoding
The adjacent block prediction mode in the periphery of first block meets condition simultaneously:4x4 sub-blocks right adjacent blocks meet predictive mode 26,27 ..., 34
One kind, upper right neighbour block meet predictive mode 10,11 ..., 34, DC one kind, bottom right neighbour block meet predictive mode 26,
27th ..., 34,2,3 ..., 10, DC, Planar one kind, lower adjacent block meet predictive mode 2,3 ..., 10
One kind, lower-left neighbour's block meet predictive mode 2,3 ..., one kind in 26.
In general, by the contemplated above technical scheme of the present invention compared with prior art, it can obtain down and show
Beneficial effect:
(1) the H.265 half invertible video steganography method based on intra prediction mode that the present invention is provided, before the entropy encoding
Carry out the insertion of secret information;The secret information corresponding with built-in end is carried out immediately after decoding end entropy decoding to extract;
The decompression of video data is carried out while extracting secret information;Compared with existing video steganography method, it is adaptable to state
H.265/HEVC the newest video encoding and decoding standard in border, integrates with video field state-of-the-art technology, with newest video encoding and decoding standard
Mutually suitable, its application environment is extremely wide, it is easy to apply and hiding information is not easy to be found;
(2) the H.265 half invertible video steganography method based on intra prediction mode that provides of the present invention, with it is existing other
Video steganography method is compared, due to having taken into full account the characteristic distributions of video content neighboring prediction unit predictive mode, by setting
Put the extraction conditions related to predictive mode and embedded condition, it is ensured that the modification to the residual error coefficient of current prediction unit will not
The adjacent block in its periphery is passed to by prediction mode, frame in distortion will not be caused by being embedded in classified information in current prediction unit block
Drift about, that is, any one coefficient in current prediction unit block can serve as embedded object without causing distortion to be drifted about,
Visual sensory's distortion drift phenomenon caused by embedding information is effectively prevent, its carrier video has good vision effect
Should, its evaluation index PSNR and former video are basically identical;
(3) the H.265 half invertible video steganography method based on intra prediction mode that provides of the present invention, its modulator approach and
In the case of demodulation method is applied to require harsher to video carrier, with as much as possible recovery initial carrier video
Advantage.
Brief description of the drawings
Fig. 1 is the total of the H.265 half invertible video steganography method provided in an embodiment of the present invention based on intra prediction mode
Body schematic flow sheet;
Fig. 2 be embodiment provide half invertible video steganography method in embedding grammar schematic flow sheet;
Fig. 3 is the insertion error analysis figure in embodiment;
Fig. 4 is the schematic diagram of H.265 33 kinds of angle predictive mode prediction directions in international standard;
Fig. 5 is embedded in the embodiment of the present invention or the adjacent block prediction mode in current prediction unit periphery should be met when extracting
Condition schematic diagram;
Fig. 6 is the extraction schematic flow sheet in the half invertible video steganography method that embodiment is provided
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.As long as in addition, technical characteristic involved in each embodiment of invention described below
Not constituting conflict each other can just be mutually combined.
It is the H.265 half invertible video steganography method provided in an embodiment of the present invention based on intra prediction mode shown in Fig. 1
Overall procedure schematic diagram, including secret information insertion and extract.
Fig. 2 be embodiment provide half invertible video steganography method in secret information embedding grammar flow signal
Figure;Specifically include following steps:
(1) video source as carrier video is obtained, and is pre-processed to intending embedded secret information, including binary system
Change, encryption and the processing for adding end-of-message position;
In the present embodiment, pretreated secret information head is 0x000001, and afterbody is 0x0001.
(2) processing is compressed to carrier video, including current prediction unit is predicted, transform and quantization processing, in entropy
Before the residual error coefficient data for encoding current prediction unit, the prediction mode information of the adjacent block in current prediction unit periphery is obtained;
(3) prediction of the predicting unit on current 4 × 4 predicting unit block peripheries to be encoded of q frames of carrier video is judged
Whether pattern meets embedded condition, wherein, q >=0;The coefficient value of current 4 × 4 predicting unit block is not all 0;
If so, then entering step (5), the insertion of data is carried out in current 4 × 4 predicting unit blocks to be encoded;If it is not,
Whether embedded condition is then met to next 4 × 4 predicting unit block judged in present frame, until present frame has been encoded, is entered
Step (4);
Wherein, embedded condition is specially:Meet following condition simultaneously:
The right adjacent block of 4x4 sub-blocks meet predictive mode 26,27 ..., any one in 34;
The adjacent block of the upper rights of 4x4 sub-blocks meet predictive mode 10,11 ..., any one in 34, DC;
The adjacent block in the bottom rights of 4x4 sub-blocks meet predictive mode 26,27 ..., 34,2,3 ..., 10, DC, Planar
In any one;
The lower adjacent block of 4x4 sub-blocks meet predictive mode 2,3 ..., 10 any one;
The adjacent block in the lower-lefts of 4x4 sub-blocks meet predictive mode 2,3 ..., any one in 26;
For example:The right adjacent block prediction mode of certain 4x4 predicting unit block is that the adjacent block prediction mode of 27, upper right is that 10, bottom right is adjacent
Block prediction mode is that 26, lower adjacent block prediction mode is that the adjacent block prediction mode in 10, lower-left is 2, then the 4x4 predicting unit blocks are made
Secret information is embedded in for current prediction unit block;
Wherein, predictive mode refers to predict the mode of current block pixel value, numerical value 0~34 using the adjacent block pixel value in periphery
Pixel value or different directions from the diverse location of the adjacent block in periphery are represented respectively to predict the pixel value of current block, are specifically documented in
H.265 in standard document.
(4) whether be the last frame of carrier video, if so, then entering step (6) if judging the frame of current information to be embedded;
If it is not, then adding 1 by current frame number q, into step (3);
(5) it is embedded according to following modulator approach:
4 × 4 predicting unit blocks are traveled through successively,
If the coefficient Y of 4 × 4 predicting unit blocksi,jAbsolute value be equal to and N+1 or be not equal to N, then update coefficient as the following formula:
If the coefficient Y of 4 × 4 predicting unit blocksi,jAbsolute value to be equal to N and information to be embedded be 1, then update system as the following formula
Number:
If the coefficient Y of 4 × 4 predicting unit blocksi,jAbsolute value to be equal to N and information to be embedded be 0, then Yi,jWithout repairing
Change;
Yi,jRefer to current 4 × 4 predicting unit block correspondence i, the coefficient of j positions, positive integer N is self-defined threshold value, this implementation
N=0,1 or 2 in example;I=0,1,2,3;J=0,1,2,3;
(6) judge to intend whether embedded secret information has fully embedded into, if then entering (7);If it is not, showing carrier video
Source capacity is very few, and secret information is not embedded into completely, then changes the video source as carrier video, into step (2);
Whether it is embedded in judge whether secret information is complete according to the afterbody of the pretreated secret information read
It is embedded, if the afterbody of secret information has been embedded in, judge that intending embedded secret information has had fully embedded into;
(7) video entropy code is carried out to 4 × 4 predicting unit blocks for having completed insertion.
It is the insertion error analysis figure in embodiment shown in Fig. 3;According to H.265/HEVC international standard, predicting unit it is pre-
Survey pattern has 35 kinds of patterns, including DC patterns, Planar patterns and { 2,3 ..., 34 } 33 kinds of angle predictive modes, its
In 33 kinds of angle predictive mode prediction directions schematic diagram it is as shown in Figure 4;4 × 4 luminance blocks to be decoded are Bi,j, Bi,jPrediction
Value is by decoded Bi-1,j-1、Bi-1,j、Bi-1,j+1、Bi,j-1、Bi-1,j+1The pixel value of grey parts is used with current prediction block
Intra prediction mode calculate jointly;The distortion drift of one 4 × 4 luminance block is the edge pixel by embedded in information
Value passes to the adjacent block in other peripheries;If the calculating of the predicted value of current block does not use the edge for the adjacent block for keeping secret information
Pixel value, then frame in distortion drift is just avoided that;Prediction in the present invention based on this undistorted drift conditions to the adjacent block in periphery
The condition that pattern should be met is as shown in figure 5, by setting these predictive mode conditions, to ensure to the residual of current prediction unit
The modification of poor coefficient data will not pass to the adjacent block in its periphery by prediction mode;Then it is embedded in predicting unit block before this secret
Close message will not cause frame in distortion to be drifted about, that is, any one coefficient in this predicting unit block can serve as embedded pair
As without causing distortion to be drifted about.
For the collimation error caused by the reduction insertion of minimum degree, it can be carried out according to the high frequency coefficient inside frequency domain
It is embedded, it is specifically the lower right position in 4 × 4 residual error coefficient sub-blocks, the coefficient of selection is Y03,Y12,Y13,Y21,Y22,Y23,Y30,
Y31,Y32,Y33, above-mentioned modulation and insertion are carried out to the coefficient of these positions.
It is described as follows with reference to example:Assuming that secret information is { s1,s2,......,sp}={ Zhengzhou, by the secret information
Carry out the secret information that pretreatment obtains following bit stream form:
000000000000000000000001110101101010001111010110110111010000000000000
001;
Using official test video BasketballPass.yuv as carrier video, to carrier video
BasketballPass video sources are carried out before entropy code, are judged whether according to the predictive mode of the adjacent block in current prediction unit periphery
Meet embedded condition;According to above-mentioned embedded condition, determine that the first frame LCU (Largest Coded Unit) allocation index is
11, predicting unit block when the interior index of block is 64 meets condition, and the predictive mode of its periphery neighbour's block is respectively:Right adjacent block prediction mould
Formula is 31, and bottom right neighbour's block prediction mode is 3, and upper right predictive mode is 1, and lower adjacent block prediction mode is 3, lower-left neighbour's block prediction mode
For DC;The residual error coefficient of above-mentioned current prediction unit is:
-2 | 3 | 0 | 0 |
7 | -2 | -2 | 0 |
-1 | -3 | -1 | 0 |
-2 | 1 | -1 | 0 |
Defined parameters N=1 is derived from, if it is 110 to intend embedded information, then be embedded according to the above method after secret information
Residual error coefficient matrix is:
-2 | 3 | 0 | 0 |
7 | -2 | -3 | 0 |
-1 | -3 | -2 | 0 |
-3 | 2 | -1 | 0 |
Video entropy code processing is carried out to having completed embedded predicting unit residual error coefficient.
It is the flow chart of the extracting method of the video steganography method of embodiment as shown in Figure 6, specifically includes following steps:
(1) the carrier video for being loaded with secret information is obtained, and configures the configuration parameter required for decoder, including specifies solution
The ASCII stream file ASCII of code, output file;
(2) the q frames of carrier video are decoded, acquisition includes predictive mode, the residual error coefficient matrix of predicting unit
Syntax element information, q initial value is 0;
(3) judge whether current prediction unit block meets extraction conditions, that is, meet the insertion of above-mentioned embedding grammar step (3)
Condition;If so, then entering the corresponding extraction information of step (4);If it is not, then judging whether next 4 × 4 pieces of predicting unit blocks are full
Sufficient extraction conditions;
In the present embodiment, insertion condition when extraction conditions are with insertion is corresponding, that is, current 4 × 4 predicting unit after decoding
The adjacent block prediction mode in the periphery of block meets condition simultaneously:The right adjacent block of 4x4 sub-blocks meet predictive mode 26,27 ..., the one of 34
Kind, upper right neighbour block meet predictive mode 10,11 ..., 34, DC one kind, bottom right neighbour block meet predictive mode 26,
27th ..., 34,2,3 ..., 10, DC, Planar one kind, lower adjacent block meet predictive mode 2,3 ..., 10
One kind, lower-left neighbour's block meet predictive mode 2,3 ..., one kind in 26;
In the present embodiment, extract corresponding with the modulator approach of telescopiny, by setting threshold value N (with telescopiny one
Cause), differentiate the concrete numerical value of residual error coefficient to carry out extracting information and recovery coefficient;Specifically (4) are entered to extract as follows:
(4) method for extracting the M ' of secret information is as follows:
IfOrOr
Then
IfThe bit then extracted is 1, and
IfThe bit then extracted is 0, andDo not change.
(5) judge whether q frames are the last frame of carrier video, if so, then entering step (6), if it is not, then making q=q
+ 1 and enter step (2);
(6) judge whether the secret information currently extracted includes head and the afterbody of information, if so, then terminating to extract;
It can proceed with the processing such as follow-up decompression, reconstructing video;If it is not, showing that carrier video capacity is very few, secret information is not carried
Take entirely, then the secret information extracted is shown and preserve, into step (7);
(7) secret information extracted is carried out removing information header, afterbody, decryption processing, inverse binarization is recovered original
Secret information.
In order to smoothly extract end extraction information, extraction process is decoding current prediction unit and periphery predicting unit
The information such as prediction mode information, residual error coefficient after could enter step (3) to judge whether to meet extraction conditions, to meeting
The predicting unit block of extraction conditions carries out information extraction modulation according to step (4);
In step (4)Refer to Y03,Y12,Y13,Y21,Y22,Y23,Y30,Y31,Y32,Y33, threshold value N=1.
It is described as follows with reference to example:The ASCII stream file ASCII received is BasketballPass.bin, and completing, entropy decoding is pre-
After the predictive mode and residual error coefficient information of surveying unit, determine the predicting unit of currently embedded secret information for the first frame LCU
Location index is that index is 64 in 11, block;Entropy decoding to current prediction unit right prediction cell block, i.e., when index is 67 in block
The secret information for being embedded into current prediction unit is carried out extracting flow and the predicting unit block that index in current block is 64 is obtained
Meet extraction conditions.The residual error coefficient matrix for getting predicting unit is:
-2 | 3 | 0 | 0 |
7 | -2 | -3 | 0 |
-1 | -3 | -2 | 0 |
-3 | 2 | -1 | 0 |
The secret information bit stream extracted according to said extracted method is:110;Residual error coefficient matrix after modulation
For:
-2 | 3 | 0 | 0 |
7 | -2 | -2 | 0 |
-1 | -2 | -1 | 0 |
-2 | 1 | -1 | 0 |
The secret information for being proceeded follow-up predicting unit residual error coefficient matrix using said extracted method is extracted, until
Untill extracting end-of-message position, the extraction of secret information is so far completed.
As it will be easily appreciated by one skilled in the art that the foregoing is merely illustrative of the preferred embodiments of the present invention, it is not used to
The limitation present invention, any modifications, equivalent substitutions and improvements made within the spirit and principles of the invention etc., it all should include
Within protection scope of the present invention.
Claims (5)
1. a kind of H.265 half invertible video steganography method based on intra prediction mode, including embedded and extraction, its feature exist
In embedding grammar specifically includes following steps:
(I) video source as carrier video is obtained, and is pre-processed to intending embedded secret information;
(II) processing is compressed to carrier video, the prediction mode information of the adjacent block in current prediction unit periphery is obtained;
(III) judge whether current 4 × 4 predicting unit blocks to be encoded of q frame ins of carrier video meet embedded condition;
If so, then entering step (V);If it is not, then judging next 4 × 4 predicting units to be encoded of q frame ins of carrier video
Whether block meets embedded condition, until having traveled through q frames, into step (IV);Wherein, q >=0;
(IV) judge whether q frames are the last frame of carrier video, if so, then entering step (VI);If it is not, then making q=q+
1, into step (III);
(V) secret information is embedded in current 4 × 4 predicting unit blocks to be encoded according to following modulator approach:
If the coefficient Y of 4 × 4 predicting unit blocki,jAbsolute value be equal to and N+1 or be not equal to N, then update coefficient as the following formula:
<mrow>
<msub>
<mover>
<mi>Y</mi>
<mo>~</mo>
</mover>
<mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
</mrow>
</msub>
<mo>=</mo>
<mfenced open = "{" close = "">
<mtable>
<mtr>
<mtd>
<mrow>
<msub>
<mover>
<mi>Y</mi>
<mo>~</mo>
</mover>
<mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
</mrow>
</msub>
<mo>+</mo>
<mn>1</mn>
<mo>,</mo>
</mrow>
</mtd>
<mtd>
<mrow>
<mi>i</mi>
<mi>f</mi>
</mrow>
</mtd>
<mtd>
<mrow>
<msub>
<mover>
<mi>Y</mi>
<mo>~</mo>
</mover>
<mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
</mrow>
</msub>
<mo>&GreaterEqual;</mo>
<mn>0</mn>
<mi>a</mi>
<mi>n</mi>
<mi>d</mi>
<mo>|</mo>
<msub>
<mover>
<mi>Y</mi>
<mo>~</mo>
</mover>
<mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
</mrow>
</msub>
<mo>|</mo>
<mo>=</mo>
<mi>N</mi>
<mo>+</mo>
<mn>1</mn>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd>
<mrow>
<msub>
<mover>
<mi>Y</mi>
<mo>~</mo>
</mover>
<mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
</mrow>
</msub>
<mo>-</mo>
<mn>1</mn>
<mo>,</mo>
</mrow>
</mtd>
<mtd>
<mrow>
<mi>i</mi>
<mi>f</mi>
</mrow>
</mtd>
<mtd>
<mrow>
<msub>
<mover>
<mi>Y</mi>
<mo>~</mo>
</mover>
<mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
</mrow>
</msub>
<mo><</mo>
<mn>0</mn>
<mi>a</mi>
<mi>n</mi>
<mi>d</mi>
<mo>|</mo>
<msub>
<mover>
<mi>Y</mi>
<mo>~</mo>
</mover>
<mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
</mrow>
</msub>
<mo>|</mo>
<mo>=</mo>
<mi>N</mi>
<mo>+</mo>
<mn>1</mn>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd>
<mrow>
<msub>
<mover>
<mi>Y</mi>
<mo>~</mo>
</mover>
<mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
</mrow>
</msub>
<mo>,</mo>
</mrow>
</mtd>
<mtd>
<mrow>
<mi>i</mi>
<mi>f</mi>
</mrow>
</mtd>
<mtd>
<mrow>
<mo>|</mo>
<msub>
<mover>
<mi>Y</mi>
<mo>~</mo>
</mover>
<mrow>
<mi>i</mi>
<mi>j</mi>
</mrow>
</msub>
<mo>|</mo>
<mo>&NotEqual;</mo>
<mi>N</mi>
</mrow>
</mtd>
</mtr>
</mtable>
</mfenced>
<mo>;</mo>
</mrow>
If the coefficient Y of 4 × 4 predicting unit blocki,jAbsolute value to be equal to N and secret information bit to be embedded be 1, then press
Formula updates coefficient Yi,j:
<mrow>
<msub>
<mover>
<mi>Y</mi>
<mo>~</mo>
</mover>
<mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
</mrow>
</msub>
<mo>=</mo>
<mfenced open = "{" close = "">
<mtable>
<mtr>
<mtd>
<mrow>
<msub>
<mover>
<mi>Y</mi>
<mo>~</mo>
</mover>
<mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
</mrow>
</msub>
<mo>+</mo>
<mn>1</mn>
<mo>,</mo>
</mrow>
</mtd>
<mtd>
<mrow>
<mi>i</mi>
<mi>f</mi>
</mrow>
</mtd>
<mtd>
<mrow>
<msub>
<mover>
<mi>Y</mi>
<mo>~</mo>
</mover>
<mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
</mrow>
</msub>
<mo>&GreaterEqual;</mo>
<mn>0</mn>
<mi>a</mi>
<mi>n</mi>
<mi>d</mi>
<mo>|</mo>
<msub>
<mover>
<mi>Y</mi>
<mo>~</mo>
</mover>
<mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
</mrow>
</msub>
<mo>|</mo>
<mo>=</mo>
<mi>N</mi>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd>
<mrow>
<msub>
<mover>
<mi>Y</mi>
<mo>~</mo>
</mover>
<mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
</mrow>
</msub>
<mo>-</mo>
<mn>1</mn>
<mo>,</mo>
</mrow>
</mtd>
<mtd>
<mrow>
<mi>i</mi>
<mi>f</mi>
</mrow>
</mtd>
<mtd>
<mrow>
<msub>
<mover>
<mi>Y</mi>
<mo>~</mo>
</mover>
<mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
</mrow>
</msub>
<mo><</mo>
<mn>0</mn>
<mi>a</mi>
<mi>n</mi>
<mi>d</mi>
<mo>|</mo>
<msub>
<mover>
<mi>Y</mi>
<mo>~</mo>
</mover>
<mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
</mrow>
</msub>
<mo>|</mo>
<mo>=</mo>
<mi>N</mi>
</mrow>
</mtd>
</mtr>
</mtable>
</mfenced>
<mo>;</mo>
</mrow>
If the coefficient Y of 4 × 4 predicting unit blocki,jAbsolute value to be equal to N and secret information bit to be embedded be 0, then Yi,jProtect
Hold constant;
Wherein, Yi,jRefer to current 4 × 4 predicting unit block correspondence i, the coefficient of j positions, N is threshold value, takes positive integer;
(VI) judge to intend whether embedded secret information has fully embedded into, if so, then terminating;Regarded if it is not, then changing as carrier
The video source of frequency, into step (II).
2. H.265 half invertible video steganography method as claimed in claim 1, it is characterised in that embedded condition is satisfaction simultaneously
Following condition:
The right adjacent block of 4x4 sub-blocks meet predictive mode 26,27 ..., any one in 34;
The adjacent block of the upper rights of 4x4 sub-blocks meet predictive mode 10,11 ..., any one in 34, DC;
The adjacent block in the bottom rights of 4x4 sub-blocks meet predictive mode 26,27 ..., 34,2,3 ..., in 10, DC, Planar
Any one;
The lower adjacent block of 4x4 sub-blocks meet predictive mode 2,3 ..., 10 any one;
The adjacent block in the lower-lefts of 4x4 sub-blocks meet predictive mode 2,3 ..., any one in 26.
3. H.265 half invertible video steganography method as claimed in claim 1 or 2, it is characterised in that according to the secret for intending insertion
Whether the end-of-message position of information is embedded in judge whether secret information has been completely embedded into, if the end-of-message position of secret information is
Through insertion, then judge that intending embedded secret information has had fully embedded into.
4. H.265 half invertible video steganography method as claimed in claim 1, it is characterised in that extracting method includes following step
Suddenly:
(i) the carrier video for being loaded with secret information is obtained, and configures the configuration parameter needed for decoder, including specifies the code of decoding
Stream file, output file;
(ii) the q frames of carrier video are decoded, acquisition includes predictive mode, the sentence of residual error coefficient matrix of predicting unit
Method element information, q initial value is 0;
(iii) judge whether q frame in current prediction unit blocks meet extraction conditions, if so, then entering step (iv);If it is not,
Then judge whether the next predicting unit block of q frame ins meets extraction conditions, until q frames have been traveled through, into step (v);Its
In, q >=0;
(iv) secret information is extracted from current prediction unit block according to following demodulation method and updates coefficient:
IfOrOr
Then
IfThe secret information bit then extracted is 1,
And
IfThe secret information bit then extracted is 0, andDo not change;
(v) judge whether q frames are the last frame of carrier video, if so, then entering step (vi), if it is not, then making q=q+1
And enter step (ii);
(vi) judge whether the secret information currently extracted includes head and afterbody, if so, then terminating to extract;If it is not, then showing
Show and preserve the secret information extracted, into step (vii);
(vii) secret information extracted is carried out removing head, afterbody, inverse binarization, decryption processing recovers original secret
Information.
5. H.265 half invertible video steganography method as claimed in claim 4, it is characterised in that extraction conditions are specially:Decoding
The adjacent block prediction mode in the periphery of current 4 × 4 predicting unit block meets condition simultaneously afterwards:
The right adjacent block of 4x4 sub-blocks meet predictive mode 26,27 ..., 34 one kind, upper right neighbour block meet predictive mode 10,
11st ..., 34, DC one kind, bottom right neighbour block meet predictive mode 26,27 ..., 34,2,3 ..., 10, DC,
Planar one kind, lower adjacent block meet predictive mode 2,3 ..., 10 one kind, lower-left neighbour block meet predictive mode 2,
3rd ..., one kind in 26.
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 true CN107333139A (en) | 2017-11-07 |
CN107333139B 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) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108174241A (en) * | 2017-12-22 | 2018-06-15 | 武汉益模科技股份有限公司 | A kind of 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 |
CN110971910A (en) * | 2019-12-10 | 2020-04-07 | 郑州师范学院 | Embedding method and extracting method for HEVC video information hiding |
CN111432217A (en) * | 2020-03-26 | 2020-07-17 | 郑州师范学院 | Information hiding embedding and extracting method based on two-dimensional histogram translation |
CN113422951A (en) * | 2019-09-20 | 2021-09-21 | 杭州海康威视数字技术股份有限公司 | Decoding and encoding method, device and equipment |
US12028543B2 (en) | 2019-09-20 | 2024-07-02 | Hangzhou Hikvision Digital Technology Co., Ltd. | Decoding method and apparatus, encoding method and apparatus, and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101621692A (en) * | 2009-07-27 | 2010-01-06 | 宁波大学 | H.264/AVC video information hiding method based on predictive mode |
US20100177893A1 (en) * | 2009-01-09 | 2010-07-15 | Sungkyunkwan University Foundation For Corporate Collaboration | Distributed video decoder and distributed video decoding method |
CN102223540A (en) * | 2011-07-01 | 2011-10-19 | 宁波大学 | Information hiding method facing to H.264/AVC (automatic volume control) video |
CN104410864A (en) * | 2014-11-07 | 2015-03-11 | 太原科技大学 | Residual energy-based error hiding method in HEVC (High Efficiency Video Coding) |
CN104581176A (en) * | 2014-12-26 | 2015-04-29 | 宁波大学 | H.264/AVC (advanced video coding) compressed domain robust video watermark embedding and extracting methods free from intra-frame error drift |
CN105872555A (en) * | 2016-03-25 | 2016-08-17 | 中国人民武装警察部队工程大学 | Steganalysis algorithm specific to H.264 video motion vector information embedment |
CN106817586A (en) * | 2016-12-22 | 2017-06-09 | 宁波工程学院 | A kind of H.264/AVC video reversible data concealing method |
-
2017
- 2017-06-27 CN CN201710500918.6A patent/CN107333139B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100177893A1 (en) * | 2009-01-09 | 2010-07-15 | Sungkyunkwan University Foundation For Corporate Collaboration | Distributed video decoder and distributed video decoding method |
CN101621692A (en) * | 2009-07-27 | 2010-01-06 | 宁波大学 | H.264/AVC video information hiding method based on predictive mode |
CN102223540A (en) * | 2011-07-01 | 2011-10-19 | 宁波大学 | Information hiding method facing to H.264/AVC (automatic volume control) video |
CN104410864A (en) * | 2014-11-07 | 2015-03-11 | 太原科技大学 | Residual energy-based error hiding method in HEVC (High Efficiency Video Coding) |
CN104581176A (en) * | 2014-12-26 | 2015-04-29 | 宁波大学 | H.264/AVC (advanced video coding) compressed domain robust video watermark embedding and extracting methods free from intra-frame error drift |
CN105872555A (en) * | 2016-03-25 | 2016-08-17 | 中国人民武装警察部队工程大学 | Steganalysis algorithm specific to H.264 video motion vector information embedment |
CN106817586A (en) * | 2016-12-22 | 2017-06-09 | 宁波工程学院 | A kind of H.264/AVC video reversible data concealing method |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108174241A (en) * | 2017-12-22 | 2018-06-15 | 武汉益模科技股份有限公司 | A kind of video playing encryption method and system |
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 |
CN113422951A (en) * | 2019-09-20 | 2021-09-21 | 杭州海康威视数字技术股份有限公司 | Decoding and encoding method, device and equipment |
US12028543B2 (en) | 2019-09-20 | 2024-07-02 | Hangzhou Hikvision Digital Technology Co., Ltd. | Decoding method and apparatus, encoding method and apparatus, and device |
CN110971910A (en) * | 2019-12-10 | 2020-04-07 | 郑州师范学院 | Embedding method and extracting method for HEVC video information hiding |
CN111432217A (en) * | 2020-03-26 | 2020-07-17 | 郑州师范学院 | Information hiding embedding and extracting method based on two-dimensional histogram translation |
Also Published As
Publication number | Publication date |
---|---|
CN107333139B (en) | 2019-12-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107333139A (en) | A kind of H.265 half invertible video steganography information approach based on intra prediction mode | |
Yang et al. | An efficient information hiding method based on motion vector space encoding for HEVC | |
Darmstaedter et al. | Low cost spatial watermarking | |
Xu et al. | A novel watermarking scheme for H. 264/AVC video authentication | |
CN101105857B (en) | High capacity reversible water mark method based on predication and companding technology | |
EP3668104B1 (en) | Video scrambling method and device with adaptive mode selection, network camera and readable storage medium | |
CN106101714B (en) | A kind of and tightly coupled H.264 video information hiding method of compression encoding process | |
CN104125468A (en) | Image processing device and method | |
CN107318022A (en) | A kind of video steganography method based on the undistorted drift of H.265 standard | |
CN102685500B (en) | H.264 large-capacity information hiding method based on information variable-length packet structure | |
CN108965887B (en) | Video information hiding method and device based on inter-block decoupling | |
CN104581176A (en) | H.264/AVC (advanced video coding) compressed domain robust video watermark embedding and extracting methods free from intra-frame error drift | |
CN104159117A (en) | Method for hiding HEVC video information | |
Galiano et al. | Efficient embedding and retrieval of information for high-resolution videos coded with HEVC | |
Rajalakshmi et al. | ZLBM: zero level binary mapping technique for video security | |
Ye et al. | A new adaptive watermarking for real-time MPEG videos | |
CN113329229A (en) | High-capacity hiding method for H.265 video information with high-efficiency fidelity | |
Zhu et al. | Information Hiding Algorithm for H. 264 Based on the predition difference of Intra_4× 4 | |
CN101873485A (en) | Watermark embedding method and device based on H.264 compressed domain | |
Pan et al. | A new lossless data hiding method based on joint neighboring coding | |
Zhou et al. | A HEVC steganography algorithm based on DCT/DST coefficients with BLB distortion model | |
Fallahpour et al. | Reversible data hiding based on H. 264/AVC intra prediction | |
CN116320471B (en) | Video information hiding method, system, equipment and video information extracting method | |
Li et al. | An information hiding approach based on integer transform coefficient and virtual space encoding for H. 264/AVC | |
Song et al. | Digital video watermarking based on intra prediction modes for audio video coding standard |
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 |