Double HEVC Compression Detection with the Same QPs Based on the PU Numbers

Rui-shi Jia, Zhaohong Li, Zhenzhen Zhang, Dongdong LiITM 2016

Abstract

Double HEVC compression detection is of great importance in video forensics. However, effective detection algorithm based on the same Qps is rarely reported. In this paper, a novel method based on the same Qps is applied in dealing with double HEVC compression detection. Firstly, the numbers of PU blocks with the size of 4×4 in each I frame is extracted during the codec procedures when the video is compressed with the same Qps. Then, calculate the standard deviation of 4×4 PU blocks difference (SDoPU) before and after the compression. Finally, select the appropriate threshold for compression testing classification according to the SDoPU statistical feature. By performing numerical experiments, We prove that the proposed algorithm is of high classification accuracy for detecting double HEVC compression.

Introduction

In the field of video forensics, identifying whether a digital video has undergone multiple compressions is a critical step in verifying its authenticity. Double compression often indicates that a video has been edited, tampered with, or re-saved to obscure its origins. While detecting double compression is straightforward when the second pass uses a different Quantization Parameter (QP), it becomes significantly more challenging when the QPs are identical. As High Efficiency Video Coding (HEVC/H.265) becomes the standard for high-definition content, forensic techniques must evolve to address this "same-QP" detection gap.

HEVC Partitioning and Prediction Units

The HEVC standard achieves high compression efficiency through a sophisticated quadtree partitioning structure. Each frame is divided into Coding Tree Units (CTUs), which are further subdivided into Coding Units (CUs). These CUs are then partitioned into Prediction Units (PUs) for motion compensation or spatial prediction.

HEVC Prediction Unit (PU) modes for Skip, Intraframe, and Interframe coding.

As shown in Figure 4, HEVC supports a variety of PU shapes and sizes, ranging from 64x64 down to 4x4. The specific partitioning chosen by the encoder depends on the complexity of the image content. The authors hypothesize that the distribution of these PU sizes—specifically the smallest 4x4 blocks—serves as a sensitive indicator of the video's compression history.

Proposed Forensic Method

The core of the proposed method lies in analyzing the stability of the 4x4 PU count. The detection workflow involves extracting the QP of the video under test, re-compressing it using that same QP, and comparing the number of 4x4 PU blocks in I-frames before and after this experimental re-compression. This comparison is quantified using the Standard Deviation of 4x4 PU blocks difference (SDoPU).

The underlying principle is that the first compression significantly disrupts the original pixel data, leading to a specific PU distribution. A second compression (the "double compression" we wish to detect) further stabilizes this distribution. Consequently, an additional experimental compression will cause a large shift in PU counts for a single-compressed video, but only a minor shift for a video that has already been double-compressed.

Comparison of PU block counts (4x4, 8x8, 16x16) across video frames for single and double compression.

As illustrated in Figure 6, the 4x4 PU counts (represented by the top lines) show a distinct "gap" between the single and double compression states. In contrast, larger PU sizes like 8x8 and 16x16 remain relatively consistent, making the 4x4 count the ideal forensic signature.

Experimental Results

The algorithm was evaluated using 36 YUV sequences in QCIF format processed with the HM10.0 reference software. Testing across various QPs (22 to 32) demonstrated robust performance:

  • Accuracy: The method achieved a peak accuracy of 84.73% at QP 32.
  • Reliability: Detection rates remained consistently between 77% and 85% across all tested quantization levels.
  • Sensitivity: At QP 32, the True Positive Rate for correctly identifying double compression reached 88.89%.

Conclusion

This research provides a viable solution for the difficult problem of same-QP double HEVC compression detection. By focusing on the statistical fluctuations of 4x4 Prediction Units, the SDoPU metric offers a reliable way to distinguish between original and re-compressed content. Future work will focus on scaling this method to higher resolutions and exploring its performance across diverse Group of Pictures (GOP) structures.

Summary updated

BibTeX
@inproceedings{jia2016double,
  author = {Rui-shi Jia and Zhaohong Li and Zhenzhen Zhang and Dongdong Li},
  title = {{Double HEVC Compression Detection with the Same QPs Based on the PU Numbers}},
  booktitle = {ITM},
  year = {2016},
  doi = {10.1051/itmconf/20160702010},
}
Figure