Skip to main content

New Research on HEVC Video Double Encoding Detection Published in Journal of Imaging

Reading time: 3 min

Recompression can leave invisible traces that alter the integrity of digital evidence. Discover how our latest research is helping forensic analysts expose hidden tampering in HEVC video files.

detection of double compression in HEVC video containing B-frames

We’re very glad to announce that Amped researchers have co-authored a scientific article about the detection of double video encoding for the modern HEVC codec. This paper, titled “Detection of Double Compression in HEVC Videos Containing B-Frames“ has been carried out together with the University of Florence (Italy). It was supervised by prof. Alessandro Piva and the outstanding contribution of Dr. Yoshihisa Furushita, as well as Dr. Daniele Baracchi and Dr. Dasara Shullani.

The article is freely accessible at this link.

Tackling the Complexity of HEVC Recompression

The paper addresses a scenario that is both common in real-world cases and underexplored in academic literature: how to reliably detect when a video has been re-encoded using HEVC with B-frames.

Why does this matter? In many forensic cases, investigators encounter video evidence that has undergone multiple compression stages, whether due to editing, re-uploading, or platform processing. Detecting such alterations is critical in establishing the integrity and chain of custody of the footage.

The Method: Learning from Compression Artifacts

We proposed a technique that models temporal inconsistencies introduced during double compression. Here’s how we approached the problem:

  • Feature Extraction: From each frame, we extracted encoding features such as frame type, coding unit (CU) size, quantization parameter (QP), and prediction modes. These features were distilled into a 28-dimensional vector representing the entire video.

  • Temporal Modeling: To analyze the sequence of frames over time, the study employed a Bidirectional Long Short-Term Memory (Bi-LSTM) neural network. This model is particularly well-suited for spotting subtle changes that emerge across frame sequences. These are exactly the kind of artifacts introduced during recompression.

Illustration of a deep learning pipeline for video compression analysis, starting with 500 input frames segmented into 4x4 blocks. Features are extracted and normalized into 28-dimensional vectors, then passed through a neural network with convolutional layers (Conv(64,3,1) and Conv(128,3,1)), an LSTM(64) unit, a Linear(1) layer, and a Sigmoid activation function to classify frames as single or double compressed.

Experimental Design and Results

To rigorously test their method, the researchers built a dedicated dataset of 129 HEVC-compressed YUV videos, derived from 43 original source sequences. This number was then largely expanded through data augmentation. Videos covered a range of bitrate combinations and GOP (Group of Pictures) structures to ensure variety and robustness.

The proposed approach achieved a detection accuracy of 80.06%, outperforming two established baselines. This makes it a promising tool for forensic analysts dealing with HEVC footage. This is especially true in surveillance and mobile device scenarios where B-frames are common and quality-preserving recompression is the norm.

Line chart showing detection accuracy (%) across various bitrate combinations (B1–B2) for single vs. double compression. Highest accuracy is 91.99% at 1000–5000 kbps and 91.20% at 1000–3000 kbps, while lowest accuracy is 66.20% at 5000–1000 kbps. Accuracy trends fluctuate with changing bitrate pairs.

What This Means for Forensics

At Amped Software, we understand the critical importance of preserving and interpreting the smallest traces left behind in digital evidence. This research reinforces the idea that encoding-level features can uncover hidden manipulations that are otherwise imperceptible.

As HEVC becomes increasingly widespread, so too must our ability to scrutinize it. Fortunately, forensic science is advancing with new innovations, and this research is pushing the field toward improved methods for detecting manipulated surveillance videos and verifying the integrity of footage.

We congratulate the authors from the University of Florence on their contribution and look forward to future advancements in this space.


 Marco Fontani

Marco Fontani is the Forensics Director at Amped Software, a software company developing image and video forensic solutions for law enforcement agencies worldwide. He earned his MSc in Computer Engineering in 2010 and his Ph.D. in Information Engineering in 2014. His research focused on image watermarking and multimedia forensics. He participated in several research projects funded by the EU and EOARD, and authored/co-authored over 30 journal and conference proceedings papers. He has experience in delivering training to law enforcement and provided expert witness testimony on several forensic cases involving digital images and videos. He is a former member of the IEEE Information Forensics and Security Technical Committee, and he actively contributed to the development of ENFSI’s Best Practice Manual for Image Authentication.

Subscribe to our Blog

Receive an email notification when a new blog post is published and don’t miss out on our latest updates, how-tos, case studies and much more content!