Abstract: Detection of double video compression is of particular importance in video forensics, as it reveals partly the video processing history. In this paper, a double compression method is proposed for HEVC–the latest video coding standard. Firstly, four 5×5 co-occurrence matrixes were derived from DCT coefficients along four directions respectively, i.e., horizontal, vertical, main diagonal and minor diagonal. Then four 4×4 co-occurrence matrixes were derived from PU types which are innovative features of HEVC and rarely been utilized by researchers. Finally, these two feature set are combined and sent to support vector machine (SVM) to detect re-compressed videos. In order to reduce the feature dimension, only the co-occurrence matrixes of DCT coefficients and PU types in horizontal direction are adopted to identify whether the video has undergone double compression. Experimental results show the effectiveness and the robustness against frame deletion of the proposed scheme.
Introduction
Digital video forensics plays a critical role in verifying the authenticity of multimedia content. A key indicator of video manipulation is "double compression," which occurs when a video is decoded, edited, and subsequently re-encoded. This process leaves behind subtle statistical traces. While detection methods for older standards like H.264 are mature, the High Efficiency Video Coding (HEVC/H.265) standard introduces complex coding structures that necessitate new forensic approaches. This paper proposes a method to detect double HEVC compression, specifically when the two compression passes use different bitrates.
Feature Extraction Methodology
The proposed method leverages two distinct types of forensic "fingerprints" extracted during the decoding process: frequency domain features and structural domain features.
Frequency Domain: DCT Coefficients
Quantized Discrete Cosine Transform (DCT) coefficients are highly sensitive to re-compression. In a singly compressed video, these coefficients typically follow a specific Laplace distribution. Re-encoding introduces quantization noise that disturbs this distribution, creating detectable anomalies.
As shown in Figure 6, the probability distribution of quantized DCT coefficients varies significantly depending on the bitrate and whether the video has undergone multiple compression cycles. These variations are captured using co-occurrence matrices to identify re-compression artifacts.
Structural Domain: PU Types
A novel contribution of this work is the use of Prediction Unit (PU) types as forensic evidence. HEVC utilizes a flexible quadtree structure to partition frames into PUs of varying sizes and shapes to optimize coding efficiency.
When a video is re-compressed, the encoder's rate-distortion optimization often leads to different partitioning decisions compared to the first pass because it is operating on a slightly degraded version of the original. Figure 5 illustrates the various PU partition modes (e.g., $2N \times 2N$, $N \times N$, asymmetric partitions) used in HEVC. The statistical shift in the co-occurrence of these PU types serves as a robust indicator of re-compression.
Classification and Experimental Results
The researchers extracted co-occurrence matrices for both DCT coefficients and PU types. To balance accuracy and computational efficiency, they evaluated both a full 164-dimensional feature set (covering four spatial directions) and a reduced 41-dimensional set (horizontal direction only). These features were then used to train a Support Vector Machine (SVM) classifier.
Experiments conducted on 17 standard YUV sequences demonstrated exceptional performance. The system achieved a 100% average accuracy (AR = 1.0) using the full feature set across various bitrate combinations. Even with the reduced 41-D feature set, accuracy remained above 96%. Furthermore, the method proved resilient to "anti-forensic" measures like frame deletion, maintaining high detection rates even when 50% of the frames were removed.
Conclusion
By combining frequency-domain DCT analysis with structural-domain PU type statistics, this method provides a highly effective tool for HEVC video forensics. Future work will focus on extending this detection capability to scenarios where bitrates are identical or where the second bitrate is lower than the first, as well as testing on higher-resolution video formats.
Summary updated