Surveillance video recompression forensics method based on universal video coding standard

By extracting video stream features and constructing information matrices and Huffman coding tables, combined with support vector machine pattern recognition, the problem of high feature dimensions and inaccurate quantification parameters in surveillance video re-compression forensics is solved, achieving high accuracy and low Surveillance video recompression forensic method for computing resources.

CN118114207BActive Publication Date: 2024-09-10XIAN UNIV OF POSTS & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410237021.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-01
Publication Date
2024-09-10
Estimated Expiration
2044-03-01

AI Technical Summary

Technical Problem

In existing surveillance video recompression forensic methods, high feature dimensions lead to increased computing resources and time consumption, and inaccurate selection of quantitative parameters leads to video blur or information loss, affecting the accuracy of forensics.

Method used

Extract the primary and advanced features of the video code stream, determine the compression trace map and Fourier transform coefficients by constructing the information matrix and Huffman coding table, and use the support vector machine for pattern recognition and regression. The training feature dimension is low and the quantization parameters are targeted. A highly accurate surveillance video re-compression evidence collection method.

Benefits of technology

The accuracy rate of surveillance video re-compression forensics is higher than 80%, which reduces the consumption of computing resources and ensures the integrity and accuracy of video information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118114207B
    Figure CN118114207B
Patent Text Reader

Abstract

A surveillance video recompression evidence collection method for a general video coding standard comprises the steps of extracting primary code stream features of a video code stream, constructing an information matrix, obtaining a compressed video code stream once, extracting primary code stream features of a compressed code stream once, constructing a compressed information matrix once, determining a compressed attribute mark once, determining a compressed trace map once, determining a compression rate of the compressed trace map once, determining a Fourier transform coefficient of the compressed trace map once, obtaining a secondary compressed video code stream, extracting secondary compressed primary code stream features, constructing a secondary compressed information matrix once, determining a secondary compressed attribute mark once, determining a secondary compressed trace map once, determining a compression rate of the secondary compressed trace map once, determining a Fourier transform coefficient of the secondary compressed trace map once, determining a high-level code stream feature vector of the video code stream, and determining a recompression evidence collection result. Compared with the prior art, the present invention has the advantages of low feature dimension of method training and targeted quantization parameters, and can be used in the field of surveillance video recompression evidence collection technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of video evidence collection, and in particular relates to re-compression evidence collection of video code streams after surveillance video coding compression. Background Art

[0002] With the rapid development of information technology, video editing software has become more advanced, making it easier to tamper with videos and difficult to detect visually. Some criminals use tampered surveillance videos to commit illegal and criminal activities, endangering public safety. It has become a general consensus in society to ensure the security of surveillance video data, and the forensic technology for detecting whether surveillance videos have been tampered with has gradually attracted people's attention. In today's video multimedia communication system applications, videos are transmitted in the network and stored on the user side in the form of compressed code streams. The video code stream may be stolen by tamperers during network transmission and storage. The tamperers will tamper with the stolen surveillance video data, and the tampered video content must be re-encoded and compressed before it can be effectively transmitted and stored. Therefore, judging the number of compression times of surveillance videos has become one of the important bases for judging whether the video has been tampered with. Accordingly, surveillance video re-compression forensics methods for detecting the number of compression times of surveillance videos have emerged. The content of the surveillance video involves important information related to the case, so the video surveillance system usually runs at a medium to high bit rate to ensure the clarity of the surveillance video content. The amount of video data will increase at an alarming rate, and there will be higher requirements for the compression efficiency of the video.

[0003] The currently proposed surveillance video recompression evidence collection method has the following problems:

[0004] The feature dimensions of the method training are generally high. For surveillance videos, the amount of video sample data is huge. At the same time, the time factor must also be considered for video detection. In judicial requirements, for those who meet the conditions for identification, the identification should generally be completed within 15 working days after acceptance. When the feature dimension is high, the computing resources and time required to solve the SVM optimization problem increase significantly, which limits the practical application of the method.

[0005] The selection of quantization parameters is not targeted. For example, in the encoding process of surveillance video, if the quantization parameters are too high, it is easy to cause video blur and loss of key information, making the information extracted from the surveillance video meaningless and the evidence may be considered invalid or unreliable. Summary of the invention

[0006] The technical problem to be solved by the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a method for training a surveillance video re-compression forensics method oriented to a general video coding standard with low feature dimension and targeted and accurate quantization parameters.

[0007] The technical solution adopted to solve the above technical problems consists of the following steps:

[0008] (1) Extracting primary stream features of video stream

[0009] The primary bitstream features in the collected video bitstream are extracted using decoding analysis software. The primary bitstream features include the division type, prediction mode, and multi-reference row index of the intra-frame prediction frame luminance domain coding unit. The decoding analysis software has been made public at https: / / vcgit.hhi.fraunhofer.de / jvet / VVCSoftware_VTM.

[0010] (2) Constructing an information matrix

[0011] The division type of the intra-frame prediction frame brightness domain coding unit in the video bitstream is normalized with 4×4 as the minimum unit, and the normalized division type T of the intra-frame prediction frame brightness domain coding unit is determined according to equations (1)-(3): 1,i,x,y , prediction model M 1,i,x,y , Multi-reference row index D 1,i,x,y Information matrix:

[0012] T 1,i,x,y =[ρ 1,i,x,y ] (1)

[0013] M 1,i,x,y =[μ 1,i,x,y ] (2)

[0014] D 1,i,x,y =[χ 1,i,x,y ] (3)

[0015] Where i represents the i-th intra-frame prediction frame in the video bitstream, i = {1, 2, ..., H}, H represents the number of intra-frame prediction frames contained in the video bitstream, H is a finite positive integer, x, y represent the position coordinates of the current coding unit, ρ 1,i,x,y Represents the information set of the division type of the luminance domain coding unit of the i-th intra-frame prediction frame in the video bitstream, ρ 1,i,x,y ∈{1,2,…,α}. 1,i,x,y Represents the information set of the prediction mode of the luminance domain coding unit of the i-th intra-frame prediction frame in the video bitstream, μ 1,i,x,y ∈{0,1,…,β},χ 1,i,x,y Represents the information set of multiple reference row indexes of the luminance domain coding unit of the i-th intra-frame prediction frame in the video bitstream, α represents the value of the intra-frame prediction frame brightness domain coding unit division type, β represents the value of the intra-frame prediction frame brightness domain coding unit prediction mode, Indicates the value of the multi-reference row index of the intra-frame prediction frame brightness domain coding unit, α, β, is a finite positive integer.

[0016] (3) Obtaining a compressed video stream

[0017] The video code stream is decoded into a decoded video using a decoder supported by the video coding standard, and the decoded video is compressed once with the same coding parameters using an encoder supported by the video coding standard to obtain a compressed video code stream.

[0018] (4) Extracting the primary code stream features

[0019] The primary code stream features in the video code stream are extracted using decoding analysis software for the compressed video code stream. The primary code stream features include the division type, prediction mode, and multi-reference row index of the intra-frame prediction frame brightness domain coding unit.

[0020] (5) Construct a compressed information matrix

[0021] The division type of the intra-frame prediction frame brightness domain coding unit in the compressed video bitstream is normalized with 4×4 as the minimum unit, and the division type T of the i-th intra-frame prediction frame brightness domain coding unit after normalization is determined according to equations (4)-(6): 2,i,x,y , prediction model M 2,i,x,y , Multi-reference row index D 2,i,x,y Information matrix:

[0022] T 2,i,x,y =[ρ 2,i,x,y ] (4)

[0023] M 2,i,x,y =[μ 2,i,x,y ] (5)

[0024] D 2,i,x,y =[χ 2,i,x,y ] (6)

[0025] In the formula, ρ 2,i,x,y Represents the information set of the division type of the luminance domain coding unit of the i-th intra-frame prediction frame in a compressed video bitstream, ρ 2,i,x,y ∈{1,2,…,α},μ 2,i,x,y Represents the information set of the prediction mode of the luminance domain coding unit of the i-th intra-frame prediction frame in a compressed video bitstream, μ 2,i,x,y ∈{0,1,…,β},χ 2,i,x,y Represents the information set of multiple reference row indexes of the luminance domain coding unit of the i-th intra-frame prediction frame in a compressed video bitstream.

[0026] (6) Determine the compression attribute mark

[0027] Determine the compression attribute mark θ according to formula (7): 1,i,x,y :

[0028]

[0029] In the formula, θ 1,i,x,y ∈{0,1,…,7}, 0 means that the partition type, prediction mode, and multi-reference row index of the luma domain coding unit attribute at (x,y) in the i-th intra-frame prediction frame of the same video have changed after one compression. 1 means that the partition type and prediction mode of the luma domain coding unit attribute at (x,y) in the i-th intra-frame prediction frame of the same video have changed after one compression. 2 means that the partition type and multi-reference row index of the luma domain coding unit attribute at (x,y) in the i-th intra-frame prediction frame of the same video have changed after one compression. 3 means that the partition type of the luma domain coding unit attribute at (x,y) in the i-th intra-frame prediction frame of the same video has changed after one compression. 4 means that the prediction mode and multi-reference row index of the luma domain coding unit attribute at (x,y) in the i-th intra-frame prediction frame of the same video have changed after one compression. 5 means that the prediction mode of the luma domain coding unit attribute at (x,y) in the i-th intra-frame prediction frame of the same video has changed after one compression. 6 indicates that the multi-reference row index of the luma domain coding unit at (x, y) in the i-th intra-frame prediction frame of the same video has changed after one compression. 7 indicates that the partition type, prediction mode, and multi-reference row index of the luma domain coding unit at (x, y) in the i-th intra-frame prediction frame of the same video have not changed after one compression.

[0030] (7) Determine a compression trace map

[0031] Determine the compression trace image f according to formula (8): 1,i,λ,ε :

[0032]

[0033] Where i represents the i-th compression trace map corresponding to the i-th intra-frame prediction frame in the video bitstream, i = {1, 2, ..., H}, H is a finite positive integer, the compression trace map and the intra-frame prediction frame are one-to-one corresponding, X represents the width of the compression trace map, Y represents the height of the compression trace map, X and Y are finite positive integers, λ, ε represent the coordinates of the grayscale value of the compression trace map.

[0034] (8) Determine the compression rate of a compression trace image

[0035] 1) Statistical symbol probability

[0036] Count the probability of all characters appearing in a compression trace image.

[0037] 2) Construct a Huffman tree of the compressed trace graph

[0038] The Huffman tree of a compressed trace graph is constructed by using the probability of occurrence of all symbols in the compressed trace graph, wherein symbols with higher probabilities are located at the lower levels of the tree, and symbols with lower probabilities are located at the higher levels of the tree.

[0039] 3) Assign code

[0040] Starting from the root node of the Huffman tree, each symbol is assigned a unique code along the path of the tree. The left subtree path is 0, the right subtree path is 1, and when reaching the leaf node, the code of the symbol is recorded.

[0041] 4) Construct a Huffman coding table for a compressed trace image

[0042] Each symbol and its corresponding code are stored in a coding table to construct a Huffman coding table of a compressed trace image.

[0043] 5) Encoding

[0044] The constructed one-time compression trace graph Huffman coding table is used for encoding to achieve data compression.

[0045] 6) Determine the compression rate of the compression trace image

[0046] According to formula (9), the compression ratio C1 of the compression trace image is determined

[0047]

[0048]

[0049]

[0050] B 1,i =3(X×Y)

[0051] Where N represents the number of compression trace maps corresponding to all intra-frame prediction frames in the video bitstream, N is a finite positive integer, and A 1,i represents the bit length of the i-th compression trace image after Huffman coding, B 1,i represents the bit length of the i-th compression trace image before Huffman coding, X×Y represents the total number of pixels of the compression trace image, and Z k Indicates the grayscale values ​​that may appear in the compression trace image, is the gray value Z k The corresponding codeword, Represents the gray value Z in the i-th compression trace image after encoding k The probability of occurrence, dk Represents the gray value Z k The number of times it appears in the compressed trace graph, k∈{0,1,…,7}.

[0052] (9) Determine the Fourier transform coefficients of the primary compression trace image

[0053] The Fourier transform spectrum coefficient E1, real coefficient G1, and imaginary coefficient L1 of the primary compression trace image are determined according to equations (10)-(12).

[0054]

[0055]

[0056]

[0057]

[0058] u={0,1,2,…,X-1}

[0059] v={0,1,2,…,Y-1}

[0060] In the formula, F 1,i,u,v represents the two-dimensional discrete Fourier transform of the i-th compression trace image, R 1,i,u,v represents the real part of the Fourier transform of the i-th compression trace image, I 1,i,u,v represents the imaginary part of the Fourier transform of the i-th compression trace image. j is an imaginary unit, u and v represent the horizontal and vertical coordinates of the Fourier transform spectrum coefficients of the compression trace image. The real part represents the low-frequency information in the image, and the imaginary part represents the high-frequency information in the image.

[0061] (10) Obtaining secondary compressed video stream

[0062] The decoder supported by the video coding standard decodes the once compressed video stream into a once compressed decoded video, and then uses the encoder supported by the video coding standard to compress the once compressed decoded video once with the same encoding parameters to obtain a twice compressed video stream.

[0063] (11) Extracting secondary compression primary code stream features

[0064] The primary stream features of the secondary compressed video stream are extracted using decoding analysis software. The primary stream features of the secondary compressed video stream include the division type, prediction mode, and multiple reference row indexes of the intra-frame prediction frame brightness domain coding unit.

[0065] (12) Constructing the secondary compression information matrix

[0066] The division type of the intra-frame prediction frame brightness domain coding unit in the secondary compressed video bitstream is normalized with 4×4 as the minimum unit, and the division type T of the i-th intra-frame prediction frame brightness domain coding unit after normalization is determined according to equations (13)-(15): 3,i,x,y , prediction model M 3,i,x,y , Multi-reference row index D 3,i,x,y Information matrix:

[0067] T 3,i,x,y =[ρ 3,i,x,y ] (13)

[0068] M 3,i,x,y =[μ 3,i,x,y ] (14)

[0069] D 3,i,x,y =[χ 3,i,x,y ] (15)

[0070] In the formula, ρ 3,i,x,y Represents the information set of the division type of the luminance domain coding unit of the i-th intra-frame prediction frame in the secondary compressed video code stream, ρ 3,i,x,y ∈{1,2,…,α},μ 3,i,x,y Represents the information set of the prediction mode of the luminance domain coding unit of the i-th intra-frame prediction frame in the secondary compressed video code stream, μ 3,i,x,y ∈{0,1,…,β},χ 3,i,x,y It represents the information set of multiple reference row index points of the luminance domain coding unit of the i-th intra-frame prediction frame in the secondary compressed video code stream.

[0071] (13) Determine the secondary compression attribute mark

[0072] Determine the secondary compression attribute mark θ according to formula (16): 2,i,x,y :

[0073]

[0074] In the formula, θ 2,i,x,y ∈{0,1,…,7}, 0-7 indicates that the meaning of the attribute tag is the same as that of the single compression attribute tag.

[0075] (14) Determine the secondary compression trace map

[0076] Determine the secondary compression trace f according to formula (17): 2,i,λ,ε :

[0077]

[0078] (15) Determine the compression ratio of the secondary compression trace image

[0079] 1) Statistical symbol probability

[0080] Count the occurrence probabilities of all characters in the secondary compression trace image.

[0081] 2) Constructing the Huffman tree of the secondary compression trace graph

[0082] The probability of occurrence of all symbols in the secondary compression trace graph is constructed into a Huffman tree of the secondary compression trace graph, in which symbols with high probability are located at the lower level of the tree, and symbols with low probability are located at the higher level of the tree.

[0083] 3) Assign code

[0084] Starting from the root node of the Huffman tree, each symbol is assigned a unique code along the path of the tree. The left subtree path is 0, the right subtree path is 1, and when reaching the leaf node, the code of the symbol is recorded.

[0085] 4) Construct Huffman coding table of secondary compression trace map

[0086] Each symbol and its corresponding code are stored in a coding table to construct a Huffman coding table of the secondary compression trace image.

[0087] 5) Encoding

[0088] The constructed secondary compression trace graph Huffman coding table is encoded to achieve data compression.

[0089] 6) Determine the compression ratio of the secondary compression trace image

[0090] According to formula (18), the compression ratio C2 of the secondary compression trace image is determined

[0091]

[0092]

[0093]

[0094] B 2,i =3(X×Y)

[0095] In the formula, A 2,i represents the bit length of the i-th secondary compression trace image after encoding, B 2,i represents the bit length of the i-th secondary compression trace image before encoding, Represents the gray level Z after encoding the i-th secondary compression trace image k Probability of occurrence.

[0096] (16) Determine the Fourier transform coefficients of the secondary compression trace image

[0097] The Fourier transform spectrum coefficient E2, real coefficient G2, and imaginary coefficient L2 of the secondary compression trace image are determined according to equations (19)-(21).

[0098]

[0099]

[0100]

[0101]

[0102] u={0,1,…,X-1}

[0103] v={0,1,…,Y-1}

[0104] In the formula, F 2,i,u,v represents the 2D discrete Fourier transform of the i-th secondary compression trace image, R 2,i,u,v represents the real part of the Fourier transform of the i-th quadratic compression trace image, I 2,i,u,v represents the imaginary part of the Fourier transform of the i-th secondary compression trace image. The real part represents the low-frequency information in the image, and the imaginary part represents the high-frequency information in the image.

[0105] (17) Determine the high-level bitstream feature vector of the video bitstream

[0106] According to formula (22), the high-level bitstream feature vector S of the video bitstream is determined:

[0107] S=(Q,S c ,S t ) (twenty two)

[0108] S c =(C1,C2)

[0109] S t =(E1,E2,G1,G2,L1,L2)

[0110] In the formula, S c The characteristic vector S represents the compression ratio corresponding to the first compression trace image and the compression ratio corresponding to the second compression trace image. t It represents a characteristic vector composed of the Fourier transform coefficients corresponding to the primary compression trace image and the Fourier transform coefficients corresponding to the secondary compression trace image. Q is a quantization parameter and is a finite positive integer.

[0111] (18) Determine the results of the recompression forensics

[0112] The high-level bitstream feature vector is input into a support vector machine pattern recognition and regression software package for training and classification. According to the binary classification data output by the support vector machine pattern recognition and regression software package, the surveillance video recompression forensics result is obtained. The support vector machine pattern recognition and regression software package has been made public at https: / / www.csie.ntu.edu.tw / ~cjlin / libsvm / .

[0113] In the formulas (1) to (3) of the information matrix after the normalization of the video code stream in (2) of the present invention, ρ 1,i,x,y ∈{1,2,…,α},μ 1,i,x,y ∈{0,1,…,β}, α, β, are the division type, prediction mode, and value of multi-reference row index of the intra-frame prediction frame brightness domain coding unit, α∈[1,17], β∈[0,66], The value is 0, 1, or 3.

[0114] In the formula (22) for determining the high-level bitstream feature vector of the video bitstream in step (17) of the present invention, Q is a quantization parameter, Q∈[12,…,37].

[0115] Since the present invention adopts the steps of determining the first compression attribute mark, determining the first compression trace map, determining the second compression attribute mark, and the second compression trace map, the technical problem that the existing method cannot accurately save the video compression trace is solved, the compression rate step of the first compression trace map, the Fourier transform coefficient step of the first compression trace map, the compression rate step of the second compression trace map, and the Fourier transform coefficient step of the second compression trace map are determined, and the step of determining the high-level code stream feature vector of the video code stream is adopted, which solves the problem that the dimension of the high-level code stream feature vector is generally high and the selection of quantization parameters is not targeted. The surveillance video re-compression evidence accuracy Ω of the methods of embodiments 1, 2, and 3 of the present invention is higher than 80%. It shows that the results of the present invention are targeted and accurate. The present invention has the advantages of low feature dimension of method training and targeted quantization parameters, and can be used in the field of surveillance video re-compression evidence collection technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0116] Figure 1 It is a flow chart of embodiment 1 of the present invention. DETAILED DESCRIPTION

[0117] The present invention will be further described in detail below in conjunction with the accompanying drawings and examples, but the present invention is not limited to the following embodiments.

[0118] Example 1

[0119] The surveillance video recompression evidence collection method for the general video coding standard of this embodiment is composed of the following steps (see Figure 1 ):

[0120] (1) Extracting primary stream features of video stream

[0121] The primary bitstream features in the collected video bitstream are extracted using decoding analysis software. The primary bitstream features include the division type, prediction mode, and multi-reference row index of the intra-frame prediction frame luminance domain coding unit. The decoding analysis software has been made public at https: / / vcgit.hhi.fraunhofer.de / jvet / VVCSoftware_VTM.

[0122] (2) Constructing an information matrix

[0123] The division type of the intra-frame prediction frame brightness domain coding unit in the video bitstream is normalized with 4×4 as the minimum unit, and the normalized division type T of the intra-frame prediction frame brightness domain coding unit is determined according to equations (1)-(3): 1,i,x,y , prediction model M 1,i,x,y , Multi-reference row index D 1,i,x,y Information matrix:

[0124] T 1,i,x,y =[ρ 1,i,x,y ] (1)

[0125] M 1,i,x,y =[μ 1,i,x,y ] (2)

[0126] D 1,i,x,y =[χ 1,i,x,y ] (3)

[0127] Where i represents the i-th intra-frame prediction frame in the video bitstream, i = {1, 2, ..., H}, H represents the number of intra-frame prediction frames contained in the video bitstream, H is a finite positive integer, x, y represent the position coordinates of the current coding unit, ρ 1,i,x,y Represents the information set of the division type of the luminance domain coding unit of the i-th intra-frame prediction frame in the video bitstream, ρ 1,i,x,y ∈{1,2,…,α};μ 1,i,x,y Represents the information set of the prediction mode of the luminance domain coding unit of the i-th intra-frame prediction frame in the video bitstream, μ 1,i,x,y ∈{0,1,…,β},χ 1,i,x,y Represents the information set of multiple reference row indexes of the luminance domain coding unit of the i-th intra-frame prediction frame in the video bitstream, α represents the value of the intra-frame prediction frame brightness domain coding unit division type, β represents the value of the intra-frame prediction frame brightness domain coding unit prediction mode, Indicates the value of the multi-reference row index of the intra-frame prediction frame brightness domain coding unit, α∈[1,17], β∈[0,66], The value is 0, 1 or 3. In this embodiment, the value of α is 9, the value of β is 33, The value is 1.

[0128] (3) Obtaining a compressed video stream

[0129] The video code stream is decoded into a decoded video using a decoder supported by the video coding standard, and the decoded video is compressed once with the same coding parameters using an encoder supported by the video coding standard to obtain a compressed video code stream.

[0130] (4) Extracting the primary code stream features

[0131] The primary code stream features in the video code stream are extracted using decoding analysis software for the compressed video code stream. The primary code stream features include the division type, prediction mode, and multi-reference row index of the intra-frame prediction frame brightness domain coding unit.

[0132] (5) Construct a compressed information matrix

[0133] The division type of the intra-frame prediction frame brightness domain coding unit in the compressed video bitstream is normalized with 4×4 as the minimum unit, and the division type T of the i-th intra-frame prediction frame brightness domain coding unit after normalization is determined according to equations (4)-(6): 2,i,x,y , prediction model M 2,i,x,y , Multi-reference row index D 2,i,x,y Information matrix:

[0134] T 2,i,x,y =[ρ 2,i,x,y ] (4)

[0135] M 2,i,x,y =[μ 2,i,x,y ] (5)

[0136] D 2,i,x,y =[χ 2,i,x,y ] (6)

[0137] In the formula, ρ 2,i,x,y Represents the information set of the division type of the luminance domain coding unit of the i-th intra-frame prediction frame in a compressed video bitstream, ρ 2,i,x,y ∈{1,2,…,α},μ 2,i,x,y Represents the information set of the prediction mode of the luminance domain coding unit of the i-th intra-frame prediction frame in a compressed video bitstream, μ 2,i,x,y ∈{0,1,…,β},χ 2,i,x,y Represents the information set of multiple reference row indexes of the luminance domain coding unit of the i-th intra-frame prediction frame in a compressed video bitstream.

[0138] (6) Determine the compression attribute mark

[0139] Determine the compression attribute mark θ according to formula (7): 1,i,x,y :

[0140]

[0141] In the formula, θ 1,i,x,y ∈{0,1,…,7}, 0 means that the partition type, prediction mode, and multi-reference row index of the luma domain coding unit attribute at (x,y) in the i-th intra-frame prediction frame of the same video have changed after one compression. 1 means that the partition type and prediction mode of the luma domain coding unit attribute at (x,y) in the i-th intra-frame prediction frame of the same video have changed after one compression. 2 means that the partition type and multi-reference row index of the luma domain coding unit attribute at (x,y) in the i-th intra-frame prediction frame of the same video have changed after one compression. 3 means that the partition type of the luma domain coding unit attribute at (x,y) in the i-th intra-frame prediction frame of the same video has changed after one compression. 4 means that the prediction mode and multi-reference row index of the luma domain coding unit attribute at (x,y) in the i-th intra-frame prediction frame of the same video have changed after one compression. 5 means that the prediction mode of the luma domain coding unit attribute at (x,y) in the i-th intra-frame prediction frame of the same video has changed after one compression. 6 indicates that the multi-reference row index of the luma domain coding unit at (x, y) in the i-th intra-frame prediction frame of the same video has changed after one compression. 7 indicates that the partition type, prediction mode, and multi-reference row index of the luma domain coding unit at (x, y) in the i-th intra-frame prediction frame of the same video have not changed after one compression.

[0142] (7) Determine a compression trace map

[0143] Determine the compression trace image f according to formula (8): 1,i,λ,ε :

[0144]

[0145] Where i represents the i-th compression trace map corresponding to the i-th intra-frame prediction frame in the video bitstream, i = {1, 2, ..., H}, H is a finite positive integer, the compression trace map and the intra-frame prediction frame are one-to-one corresponding, X represents the width of the compression trace map, Y represents the height of the compression trace map, X and Y are finite positive integers, λ, ε represent the coordinates of the grayscale value of the compression trace map.

[0146] (8) Determine the compression rate of a compression trace image

[0147] 1) Statistical symbol probability

[0148] Count the probability of all characters appearing in a compression trace image.

[0149] 2) Construct a Huffman tree of the compressed trace graph

[0150] The Huffman tree of a compressed trace graph is constructed by using the probability of occurrence of all symbols in the compressed trace graph, wherein symbols with higher probabilities are located at the lower levels of the tree, and symbols with lower probabilities are located at the higher levels of the tree.

[0151] 3) Assign code

[0152] Starting from the root node of the Huffman tree, each symbol is assigned a unique code along the path of the tree. The left subtree path is 0, the right subtree path is 1, and when reaching the leaf node, the code of the symbol is recorded.

[0153] 4) Construct a Huffman coding table for a compressed trace image

[0154] Each symbol and its corresponding code are stored in a coding table to construct a Huffman coding table of a compressed trace image.

[0155] 5) Encoding

[0156] The constructed one-time compression trace graph Huffman coding table is used for encoding to achieve data compression.

[0157] 6) Determine the compression rate of the compression trace image

[0158] According to formula (9), the compression ratio C1 of the compression trace image is determined

[0159]

[0160]

[0161]

[0162] B 1,i =3(X×Y)

[0163] Where N represents the number of compression trace maps corresponding to all intra-frame prediction frames in the video bitstream, N is a finite positive integer, and A 1,i represents the bit length of the i-th compression trace image after Huffman coding, B 1,i represents the bit length of the i-th compression trace image before Huffman coding, X×Y represents the total number of pixels of the compression trace image, and Z k Indicates the grayscale values ​​that may appear in the compression trace image, is the gray value Z k The corresponding codeword, Represents the gray value Z in the i-th compression trace image after encoding k The probability of occurrence, d k Represents the gray value Z k The number of times it appears in the compressed trace graph, k∈{0,1,…,7}.

[0164] (9) Determine the Fourier transform coefficients of the primary compression trace image

[0165] The Fourier transform spectrum coefficient E1, real coefficient G1, and imaginary coefficient L1 of the primary compression trace image are determined according to equations (10)-(12).

[0166]

[0167]

[0168]

[0169]

[0170] u={0,1,2,…,X-1}

[0171] v={0,1,2,…,Y-1}

[0172] In the formula, F 1,i,u,v represents the two-dimensional discrete Fourier transform of the i-th compression trace image, R 1,i,u,v represents the real part of the Fourier transform of the i-th compression trace image, I 1,i,u,v represents the imaginary part of the Fourier transform of the i-th compression trace image. j is an imaginary unit, u and v represent the horizontal and vertical coordinates of the Fourier transform spectrum coefficients of the compression trace image. The real part represents the low-frequency information in the image, and the imaginary part represents the high-frequency information in the image.

[0173] (10) Obtaining secondary compressed video stream

[0174] The decoder supported by the video coding standard decodes the once compressed video stream into a once compressed decoded video, and then uses the encoder supported by the video coding standard to compress the once compressed decoded video once with the same encoding parameters to obtain a twice compressed video stream.

[0175] (11) Extracting secondary compression primary code stream features

[0176] The primary stream features of the secondary compressed video stream are extracted using decoding analysis software. The primary stream features of the secondary compressed video stream include the division type, prediction mode, and multiple reference row indexes of the intra-frame prediction frame brightness domain coding unit.

[0177] (12) Constructing the secondary compression information matrix

[0178] The division type of the intra-frame prediction frame brightness domain coding unit in the secondary compressed video bitstream is normalized with 4×4 as the minimum unit, and the division type T of the i-th intra-frame prediction frame brightness domain coding unit after normalization is determined according to equations (13)-(15): 3,i,x,y , prediction model M 3,i,x,y , Multi-reference row index D 3,i,x,y Information matrix:

[0179] T 3,i,x,y =[ρ 3,i,x,y ] (13)

[0180] M 3,i,x,y =[μ 3,i,x,y ] (14)

[0181] D 3,i,x,y =[χ 3,i,x,y ] (15)

[0182] In the formula, ρ 3,i,x,y Represents the information set of the division type of the luminance domain coding unit of the i-th intra-frame prediction frame in the secondary compressed video code stream, ρ 3,i,x,y ∈{1,2,…,α},μ 3,i,x,y Represents the information set of the prediction mode of the luminance domain coding unit of the i-th intra-frame prediction frame in the secondary compressed video code stream, μ 3,i,x,y ∈{0,1,…,β},χ 3,i,x,y It represents the information set of multiple reference row index points of the luminance domain coding unit of the i-th intra-frame prediction frame in the secondary compressed video code stream.

[0183] (13) Determine the secondary compression attribute mark

[0184] Determine the secondary compression attribute mark θ according to formula (16): 2,i,x,y :

[0185]

[0186] In the formula, θ 2,i,x,y ∈{0,1,…,7}, 0-7 indicates that the meaning of the attribute tag is the same as that of the single compression attribute tag.

[0187] (14) Determine the secondary compression trace map

[0188] Determine the secondary compression trace f according to formula (17): 2,i,λ,ε :

[0189]

[0190] (15) Determine the compression ratio of the secondary compression trace image

[0191] 1) Statistical symbol probability

[0192] Count the occurrence probabilities of all characters in the secondary compression trace image.

[0193] 2) Constructing the Huffman tree of the secondary compression trace graph

[0194] The probability of occurrence of all symbols in the secondary compression trace graph is constructed into a Huffman tree of the secondary compression trace graph, in which symbols with high probability are located at the lower level of the tree, and symbols with low probability are located at the higher level of the tree.

[0195] 3) Assign code

[0196] Starting from the root node of the Huffman tree, each symbol is assigned a unique code along the path of the tree. The left subtree path is 0, the right subtree path is 1, and when reaching the leaf node, the code of the symbol is recorded.

[0197] 4) Construct Huffman coding table of secondary compression trace map

[0198] Each symbol and its corresponding code are stored in a coding table to construct a Huffman coding table of the secondary compression trace image.

[0199] 5) Encoding

[0200] The constructed secondary compression trace graph Huffman coding table is encoded to achieve data compression.

[0201] 6) Determine the compression ratio of the secondary compression trace image

[0202] According to formula (18), the compression ratio C2 of the secondary compression trace image is determined

[0203]

[0204]

[0205]

[0206] B 2,i =3(X×Y)

[0207] In the formula, A 2,i represents the bit length of the i-th secondary compression trace image after encoding, B 2,i represents the bit length of the i-th secondary compression trace image before encoding, Represents the gray level Z after encoding the i-th secondary compression trace image k Probability of occurrence.

[0208] (16) Determine the Fourier transform coefficients of the secondary compression trace image

[0209] The Fourier transform spectrum coefficient E2, real coefficient G2, and imaginary coefficient L2 of the secondary compression trace image are determined according to equations (19)-(21).

[0210]

[0211]

[0212]

[0213]

[0214] u={0,1,…,X-1}

[0215] v={0,1,…,Y-1}

[0216] In the formula, F 2,i,u,v represents the 2D discrete Fourier transform of the i-th secondary compression trace image, R 2,i,u,v represents the real part of the Fourier transform of the i-th quadratic compression trace image, I 2,i,u,v represents the imaginary part of the Fourier transform of the i-th secondary compression trace image. The real part represents the low-frequency information in the image, and the imaginary part represents the high-frequency information in the image.

[0217] (17) Determine the high-level bitstream feature vector of the video bitstream

[0218] According to formula (22), the high-level bitstream feature vector S of the video bitstream is determined:

[0219] S=(Q,S c ,S t ) (twenty two)

[0220] S c =(C1,C2)

[0221] S t =(E1,E2,G1,G2,L1,L2)

[0222] In the formula, S c The characteristic vector S represents the compression ratio corresponding to the first compression trace image and the compression ratio corresponding to the second compression trace image. t The feature vector is composed of the Fourier transform coefficients corresponding to the primary compression trace image and the Fourier transform coefficients corresponding to the secondary compression trace image. Q is a quantization parameter, Q∈[12,…,37]. The value of Q in this embodiment is 22.

[0223] (18) Determine the results of the recompression forensics

[0224] The high-level bitstream feature vector is input into a support vector machine pattern recognition and regression software package for training and classification. According to the binary classification data output by the support vector machine pattern recognition and regression software package, the surveillance video recompression forensics result is obtained. The support vector machine pattern recognition and regression software package has been made public at https: / / www.csie.ntu.edu.tw / ~cjlin / libsvm / .

[0225] Complete the surveillance video re-compression forensics method for general video coding standards.

[0226] The method of this embodiment is used to conduct an experiment on the test video, and the experimental results are as follows:

[0227] 14 standard videos recommended by the coding standard formulation group are selected as test videos, and the color space of the video is YCbCr4:2:0. The VTM-16.0 software is used to encode and compress the test video to obtain the corresponding video bitstream, and the video bitstream is input into the method of this embodiment for recompression and evidence collection. The encoding level is main, the encoding structure is a low-delay encoding structure, and the value of the quantization parameter is 25. The encoding parameters refer to the default settings in the configuration file encoder_lowdelay_P_vtm.cfg. The surveillance video recompression and evidence collection accuracy Ω corresponding to the method of this embodiment is calculated according to formula (35):

[0228]

[0229] In the formula, σ ξ,ξ , σ ξ,ω are the number of positive samples judged as single compressed video and heavy compressed video, σ ω,ω , σ ω,ξ are the number of negative samples determined to be re-compressed videos and single-compressed videos, respectively. The result is that the surveillance video re-compression evidence collection accuracy Ω of the method in this embodiment is 88.51%.

[0230] Example 2

[0231] The surveillance video recompression evidence collection method for the general video coding standard of this embodiment is composed of the following steps:

[0232] (1) Extracting primary stream features of video stream

[0233] This step is the same as in Example 1.

[0234] (2) Constructing an information matrix

[0235] In equations (1), (2), and (3), ρ 1,i,x,y Represents the information set of the division type of the luminance domain coding unit of the i-th intra-frame prediction frame in the video bitstream, ρ 1,i,x,y ∈{1,2,…,α};μ1,i,x,y Represents the information set of the prediction mode of the luminance domain coding unit of the i-th intra-frame prediction frame in the video bitstream, μ 1,i,x,y ∈{0,1,…,β},χ 1,i,x,y Represents the information set of multiple reference row indexes of the luminance domain coding unit of the i-th intra-frame prediction frame in the video bitstream, α represents the value of the intra-frame prediction frame brightness domain coding unit division type, β represents the value of the intra-frame prediction frame brightness domain coding unit prediction mode, Indicates the value of the multi-reference row index of the intra-frame prediction frame brightness domain coding unit, α∈[1,17], β∈[0,66], The value is 0, 1 or 3. In this embodiment, the value of α is 1, the value of β is 0, The value is 3.

[0236] The other parameters and values ​​in this step are the same as those in Example 1.

[0237] (3) Obtaining a compressed video stream

[0238] This step is the same as in Example 1.

[0239] (4) Extracting the primary code stream features

[0240] This step is the same as in Example 1.

[0241] (5) Construct a compressed information matrix

[0242] This step is the same as in Example 1.

[0243] (6) Determine the compression attribute mark

[0244] This step is the same as in Example 1.

[0245] (7) Determine a compression trace map

[0246] This step is the same as in Example 1.

[0247] (8) Determine the compression rate of a compression trace image

[0248] This step is the same as in Example 1.

[0249] (9) Determine the Fourier transform coefficients of the primary compression trace image

[0250] This step is the same as in Example 1.

[0251] (10) Obtaining secondary compressed video stream

[0252] This step is the same as in Example 1.

[0253] (11) Extracting secondary compression primary code stream features

[0254] This step is the same as in Example 1.

[0255] (12) Constructing the secondary compression information matrix

[0256] This step is the same as in Example 1.

[0257] (13) Determine the secondary compression attribute mark

[0258] This step is the same as in Example 1.

[0259] (14) Determine the secondary compression trace map

[0260] This step is the same as in Example 1.

[0261] (15) Determine the compression ratio of the secondary compression trace image

[0262] This step is the same as in Example 1.

[0263] (16) Determine the Fourier transform coefficients of the secondary compression trace image

[0264] This step is the same as in Example 1.

[0265] (17) Determine the high-level bitstream feature vector of the video bitstream

[0266] In formula (22), Q is a quantization parameter, Q∈[12,…,37], and the value of Q in this embodiment is 12.

[0267] The other parameters and values ​​in this step are the same as those in Example 1.

[0268] The other steps are the same as those in Example 1. The surveillance video recompression evidence collection method oriented to the general video coding standard is completed.

[0269] The method of this embodiment is used to conduct an experiment on the test video, and the experimental results are as follows:

[0270] The video images, experimental process and calculation method used are the same as those in Example 1. The quantization parameter Q of this embodiment is 12, and the surveillance video recompression evidence collection accuracy Ω is 98.51%.

[0271] Example 3

[0272] The surveillance video recompression evidence collection method for the general video coding standard of this embodiment is composed of the following steps:

[0273] (1) Extracting primary stream features of video stream

[0274] This step is the same as in Example 1.

[0275] (2) Constructing an information matrix

[0276] In equations (1), (2), and (3), ρ 1,i,x,y Represents the information set of the division type of the luminance domain coding unit of the i-th intra-frame prediction frame in the video bitstream, ρ 1,i,x,y ∈{1,2,…,α};μ 1,i,x,y Represents the information set of the prediction mode of the luminance domain coding unit of the i-th intra-frame prediction frame in the video bitstream, μ 1,i,x,y ∈{0,1,…,β},χ 1,i,x,y Represents the information set of multiple reference row indexes of the luminance domain coding unit of the i-th intra-frame prediction frame in the video bitstream, α represents the value of the intra-frame prediction frame brightness domain coding unit division type, β represents the value of the intra-frame prediction frame brightness domain coding unit prediction mode, Indicates the value of the multi-reference row index of the intra-frame prediction frame brightness domain coding unit, α∈[1,17], β∈[0,66], The value is 0, 1 or 3. In this embodiment, the value of α is 17, and the value of β is 66. The value is 0.

[0277] The other parameters and values ​​in this step are the same as those in Example 1.

[0278] (3) Obtaining a compressed video stream

[0279] This step is the same as in Example 1.

[0280] (4) Extracting the primary code stream features

[0281] This step is the same as in Example 1.

[0282] (5) Construct a compressed information matrix

[0283] This step is the same as in Example 1.

[0284] (6) Determine the compression attribute mark

[0285] This step is the same as in Example 1.

[0286] (7) Determine a compression trace map

[0287] This step is the same as in Example 1.

[0288] (8) Determine the compression rate of a compression trace image

[0289] This step is the same as in Example 1.

[0290] (9) Determine the Fourier transform coefficients of the primary compression trace image

[0291] This step is the same as in Example 1.

[0292] (10) Obtaining secondary compressed video stream

[0293] This step is the same as in Example 1.

[0294] (11) Extracting secondary compression primary code stream features

[0295] This step is the same as in Example 1.

[0296] (12) Constructing the secondary compression information matrix

[0297] This step is the same as in Example 1.

[0298] (13) Determine the secondary compression attribute mark

[0299] This step is the same as in Example 1.

[0300] (14) Determine the secondary compression trace map

[0301] This step is the same as in Example 1.

[0302] (15) Determine the compression ratio of the secondary compression trace image

[0303] This step is the same as in Example 1.

[0304] (16) Determine the Fourier transform coefficients of the secondary compression trace image

[0305] This step is the same as in Example 1.

[0306] (17) Determine the high-level bitstream feature vector of the video bitstream

[0307] In formula (22), Q is a quantization parameter, Q∈[12,…,37], and the value of Q in this embodiment is 37.

[0308] The other parameters and values ​​in this step are the same as those in Example 1.

[0309] The other steps are the same as those in Example 1. A surveillance video recompression evidence collection method oriented to a general video coding standard.

[0310] The method of this embodiment is used to conduct an experiment on the test video, and the experimental results are as follows:

[0311] The video images, experimental process and calculation method used are the same as those in Example 1. The quantization parameter Q of this embodiment is 12, and the surveillance video recompression evidence collection accuracy Ω is 93.48%.

[0312] The surveillance video recompression evidence collection accuracy Ω of the above embodiments 1, 2, and 3 of the present invention is higher than 80%, which shows that the results of the present invention are targeted and accurate.

Claims

1. A surveillance video recompression evidence collection method oriented to a universal video coding standard, characterized in that It consists of the following steps: (1) Extracting primary stream features of video stream The primary bitstream features in the collected video bitstream are extracted using decoding analysis software, and the primary bitstream features include the division type, prediction mode, and multi-reference row index of the intra-frame prediction frame brightness domain coding unit; (2) Constructing an information matrix The division type of the intra-frame prediction frame brightness domain coding unit in the video bitstream is normalized with 4×4 as the minimum unit, and the normalized division type T of the intra-frame prediction frame brightness domain coding unit is determined according to equations (1)-(3): 1,i,x,y , prediction model M 1,i,x,y , Multi-reference row index D 1,i,x,y Information matrix: T 1,i,x,y =[ρ 1,i,x,y ] (1) M 1,i,x,y =[μ 1,i,x,y ] (2) D 1,i,x,y =[χ 1,i,x,y ] (3) In the formula, i represents the i-th intra-frame prediction frame in the video, i = {1, 2, ..., H}, H represents the number of intra-frame prediction frames contained in the video bitstream, H is a finite positive integer, x, y represent the position coordinates of the current coding unit, ρ 1,i,x,y Represents the information set of the division type of the luminance domain coding unit of the i-th intra-frame prediction frame in the video bitstream, ρ 1,i,x,y ∈{1,2,…,α};μ 1,i,x,y Represents the information set of the prediction mode of the luminance domain coding unit of the i-th intra-frame prediction frame in the video bitstream, μ 1,i,x,y ∈{0,1,…,β},χ 1,i,x,y Represents the information set of multiple reference row indexes of the luminance domain coding unit of the i-th intra-frame prediction frame in the video bitstream, α represents the value of the intra-frame prediction frame brightness domain coding unit division type, β represents the value of the intra-frame prediction frame brightness domain coding unit prediction mode, Indicates the value of the multi-reference row index of the intra-frame prediction frame brightness domain coding unit, α, β, is a finite positive integer; (3) Obtaining a compressed video stream Decoding the video bitstream into a decoded video using a decoder supported by the video coding standard, and then compressing the decoded video once with the same coding parameters using an encoder supported by the video coding standard to obtain a compressed video bitstream; (4) Extracting the primary code stream features Extracting primary code stream features from a compressed video code stream using decoding analysis software, wherein the primary code stream features include a division type, a prediction mode, and a multi-reference row index of a coding unit in a luminance domain of an intra-frame prediction frame; (5) Construct a compressed information matrix The division type of the intra-frame prediction frame brightness domain coding unit in the compressed video bitstream is normalized with 4×4 as the minimum unit, and the division type T of the i-th intra-frame prediction frame brightness domain coding unit after normalization is determined according to equations (4)-(6): 2,i,x,y , prediction model M 2,i,x,y , Multi-reference row index D 2,i,x,y Information matrix: T 2,i,x,y =[ρ 2,i,x,y ] (4) M 2,i,x,y =[μ 2,i,x,y ] (5) D 2,i,x,y =[x 2,i,x,y ] (6) In the formula, ρ 2,i,x,y Represents the information set of the division type of the luminance domain coding unit of the i-th intra-frame prediction frame in a compressed video bitstream, ρ 2,i,x,y ∈{1,2,…,α},μ 2,i,x,y Represents the information set of the prediction mode of the luminance domain coding unit of the i-th intra-frame prediction frame in a compressed video bitstream, μ 2,i,x,y ∈{0,1,…,β},χ 2,i,x,y Represents the information set of multiple reference row indexes of the luminance domain coding unit of the i-th intra-frame prediction frame in a compressed video bitstream. (6) Determine the compression attribute mark Determine the compression attribute mark θ according to formula (7): 1,i,x,y : In the formula, θ 1,i,x,y ∈{0,1,…,7}, 0 means that the division type, prediction mode, and multi-reference row index of the luminance domain coding unit attribute at (x,y) in the i-th intra-frame prediction frame of the same video have changed after one compression, 1 means that the division type and prediction mode of the luminance domain coding unit attribute at (x,y) in the i-th intra-frame prediction frame of the same video have changed after one compression, 2 means that the division type and multi-reference row index of the luminance domain coding unit attribute at (x,y) in the i-th intra-frame prediction frame of the same video have changed after one compression, 3 means that the division type of the luminance domain coding unit attribute at (x,y) in the i-th intra-frame prediction frame of the same video has changed after one compression The type changes, 4 means that the prediction mode and multi-reference row index of the luminance domain coding unit attribute at (x, y) in the i-th intra-frame prediction frame of the same video have changed after one compression, 5 means that the prediction mode of the luminance domain coding unit attribute at (x, y) in the i-th intra-frame prediction frame of the same video has changed after one compression, 6 means that the multi-reference row index of the luminance domain coding unit attribute at (x, y) in the i-th intra-frame prediction frame of the same video has changed after one compression, 7 means that the division type, prediction mode, and multi-reference row index of the luminance domain coding unit at (x, y) in the i-th intra-frame prediction frame of the same video have not changed after one compression; (7) Determine a compression trace map Determine the compression trace image f according to formula (8): 1,i,λ,ε : Where i represents the i-th compression trace map corresponding to the i-th intra-frame prediction frame in the video bitstream, i={1,2,…,H}, H is a finite positive integer, the compression trace map corresponds to the intra-frame prediction frame one by one, X represents the width of the compression trace map, Y represents the height of the compression trace map, X and Y are finite positive integers, λ, ε represent the coordinates of the grayscale value of the compression trace map; (8) Determine the compression rate of a compression trace image 1) Statistical symbol probability Count the probability of all characters appearing in a compression trace image; 2) Construct a Huffman tree of the compressed trace graph The Huffman tree of a compressed trace graph is constructed by using the probability of occurrence of all symbols in the compressed trace graph, where symbols with higher probabilities are located at the lower levels of the tree, and symbols with lower probabilities are located at the higher levels of the tree; 3) Assign code Starting from the root node of the Huffman tree, a unique code is assigned to each symbol along the path of the tree. The left subtree path is 0, and the right subtree path is 1. When reaching a leaf node, the code of the symbol is recorded. 4) Construct a Huffman coding table for a compressed trace image Each symbol and its corresponding code are stored in a coding table to construct a Huffman coding table of a compressed trace image; 5) Encoding Encoding is performed using the constructed Huffman coding table of the primary compression trace graph to achieve data compression; 6) Determine the compression rate of the compression trace image The compression ratio C1 of the compressed trace image is determined according to formula (9): B 1,i =3(X×Y) Where N represents the number of compression trace maps corresponding to all intra-frame prediction frames in the video, N is a finite positive integer, and A 1,i represents the bit length of the i-th compression trace image after Huffman coding, B 1,i represents the bit length of the i-th compression trace image before Huffman coding, X×Y represents the total number of pixels of the compression trace image, and Z k Indicates the grayscale values ​​that may appear in the compression trace image, is the gray value Z k The corresponding codeword, Represents the gray value Z in the i-th compression trace image after encoding k The probability of occurrence, d k Represents the gray value Z k The number of times it appears in the compression trace graph, k∈{0,1,…,7}; (9) Determine the Fourier transform coefficients of the primary compression trace image Determine the Fourier transform spectrum coefficient E1, real coefficient G1, and imaginary coefficient L1 of the primary compression trace image according to equations (10)-(12); u={0,1,2,…,X-1} v={0,1,2,…,Y-1} In the formula, F 1,i,u,v represents the two-dimensional discrete Fourier transform of the i-th compression trace image, R 1,i,u,v represents the real part of the Fourier transform of the i-th compression trace image, I 1,i,u,v represents the imaginary part of the Fourier transform of the i-th compression trace image; j is an imaginary unit, u and v represent the abscissa and ordinate of the Fourier transform spectrum coefficient of the compression trace image; the real part represents the low-frequency information in the image, and the imaginary part represents the high-frequency information in the image; (10) Obtaining secondary compressed video stream Using a decoder supported by the video coding standard to decode the once compressed video stream into a once compressed decoded video, and then using an encoder supported by the video coding standard to compress the once compressed decoded video once with the same encoding parameters to obtain a twice compressed video stream; (11) Extracting secondary compression primary code stream features Extracting primary stream features from the secondary compressed video stream using decoding analysis software, the primary stream features of the secondary compressed video stream including the division type, prediction mode, and multi-reference row index of the intra-frame prediction frame brightness domain coding unit; (12) Constructing the secondary compression information matrix The division type of the intra-frame prediction frame brightness domain coding unit in the secondary compressed video bitstream is normalized with 4×4 as the minimum unit, and the division type T of the i-th intra-frame prediction frame brightness domain coding unit after normalization is determined according to equations (13)-(15): 3,i,x,y , prediction model M 3,i,x,y , Multi-reference row index D 3,i,x,y Information matrix: T 3,i,x,y =[ρ 3,i,x,y ] (13) M 3,i,x,y =[μ 3,i,x,y ] (14) D 3,i,x,y =[χ 3,i,x,y ] (15) In the formula, ρ 3,i,x,y Represents the information set of the division type of the luminance domain coding unit of the i-th intra-frame prediction frame in the secondary compressed video code stream, ρ 3,i,x,y ∈{1,2,…,α},μ 3,i,x,y Represents the information set of the prediction mode of the luminance domain coding unit of the i-th intra-frame prediction frame in the secondary compressed video code stream, μ 3,i,x,y ∈{0,1,…,β},χ 3,i,x,y It represents the information set of multiple reference row index points of the luminance domain coding unit of the i-th intra-frame prediction frame in the secondary compressed video code stream. (13) Determine the secondary compression attribute mark Determine the secondary compression attribute mark θ according to formula (16): 2,i,x,y : In the formula, θ 2,i,x,y ∈{0,1,…,7}, 0-7 indicates that the meaning of the attribute tag is the same as that of the first compression attribute tag; (14) Determine the secondary compression trace map Determine the secondary compression trace f according to formula (17): 2,i,λ,ε (15) Determine the compression ratio of the secondary compression trace image 1) Statistical symbol probability Count the occurrence probabilities of all characters in the secondary compression trace image; 2) Constructing the Huffman tree of the secondary compression trace graph The probability of occurrence of all symbols in the secondary compression trace graph is constructed into a Huffman tree of the secondary compression trace graph, in which symbols with high probability are located at the lower level of the tree, and symbols with low probability are located at the higher level of the tree; 3) Assign code Starting from the root node of the Huffman tree, a unique code is assigned to each symbol along the path of the tree; the left subtree path is 0, the right subtree path is 1, and when reaching the leaf node, the code of the symbol is recorded; 4) Construct Huffman coding table of secondary compression trace map Each symbol and its corresponding code are stored in a coding table to construct a Huffman coding table of the secondary compression trace graph; 5) Encoding Encode the constructed secondary compression trace graph Huffman coding table to achieve data compression; 6) Determine the compression ratio of the secondary compression trace image According to formula (18), the compression ratio C2 of the secondary compression trace image is determined B 2,i =3(X×Y) In the formula, A 2,i represents the bit length of the i-th secondary compression trace image after encoding, B 2,i represents the bit length of the i-th secondary compression trace image before encoding, Represents the gray level Z after encoding the i-th secondary compression trace image k Probability of occurrence; (16) Determine the Fourier transform coefficients of the secondary compression trace image According to equations (19)-(21), the Fourier transform spectrum coefficient E2, real coefficient G2, and imaginary coefficient L2 of the secondary compression trace image are determined: u={0,1,…,X-1} v={0,1,…,Y-1} In the formula, F 2,i,u,v represents the 2D discrete Fourier transform of the i-th secondary compression trace image, R 2,i,u,v represents the real part of the Fourier transform of the i-th quadratic compression trace image, I 2,i,u,v represents the imaginary part of the Fourier transform of the i-th secondary compression trace image; the real part represents the low-frequency information in the image, and the imaginary part represents the high-frequency information in the image; (17) Determine the high-level bitstream feature vector of the video bitstream According to formula (22), the high-level bitstream feature vector S of the video bitstream is determined: S=(Q,S c ,S t ) (22) S c =(C1,C2) S t =(E1,E2,G1,G2,L1,L2) In the formula, S c The characteristic vector S represents the compression ratio corresponding to the first compression trace image and the compression ratio corresponding to the second compression trace image. t The characteristic vector is composed of the Fourier transform coefficient corresponding to the first compression trace image and the Fourier transform coefficient corresponding to the second compression trace image, Q is a quantization parameter, which is a finite positive integer; (18) Determine the results of the recompression forensics The high-level code stream feature vector is input into the support vector machine pattern recognition and regression software package for training and classification, and the surveillance video recompression forensics result is obtained according to the 2-classification data output by the support vector machine pattern recognition and regression software package.

2. The surveillance video recompression evidence collection method oriented to the general video coding standard according to claim 1 is characterized in that: In the formulas (1)-(3) for constructing the information matrix of the normalized video bitstream in step (2), the ρ 1,i,x,y ∈{1,2,…,α},μ 1,i,x,y ∈{0,1,…,β}, α, β, are the division type, prediction mode, and value of multi-reference row index of the intra-frame prediction frame brightness domain coding unit, α∈[1,17], β∈[0,66], The value is 0, 1, or 3.

3. The surveillance video recompression evidence collection method oriented to the general video coding standard according to claim 1 is characterized in that: In the formula (22) for determining the high-level bitstream feature vector of the video bitstream in step (17) of the present invention, Q is a quantization parameter, Q∈[12,…,37].