Is it possible to know if a security video was edited? forensic analysis

2026-05-14

Internal image: Is it possible to know if a security video was edited? forensic analysis

They are showing him a video that supposedly proves something against him. He sees it and something doesn't add up. A jump in the image. A change in light that shouldn't be there. A period of time that makes no sense. But when he says it, they answer: "There's the video, that's what happened."

And you get that discomfort. The feeling that something about that video isn't how it looks. He doesn't have a way to prove that. Because at clear glance, a video published by someone who knows what they do is indistinguishable from an authentic video.

At first glance.

That's what a human eye can do: see the image, see the movement, notice if there's an obvious cut, a grotesque jump, a crude transition. But modern editions are not crude. A five-second cut in a security video, made with competent editing software, may be invisible in normal playback. The video looks continuous. The movement does not jump. Shadows do not change abruptly. To anyone watching it on a screen, the video appears intact.

But at the level of file structure -- at the layer that the human eye doesn't see and that a video player doesn't display -- editing leaves traces. Traces that cannot be removed without destroying the video itself. Traces that computer forensics knows how to find, document and present before a judge with the precision required by article 210-A.

This article explains how.

Accused who is being presented with a video as evidence and who suspects that it was manipulated: What follows is exactly what his lawyer needs to know to challenge that evidence. That's not about opinions or "looks weird." It's a technical analysis that shows, with verifiable data, whether the video was altered or not.

Defense Attorney Needing to Challenge Security Video That Looks Too Convenient: The challenge with "my client says it's fake" isn't gonna get anywhere. What you need is a forensic examination that analyzes the structure of the file and objectively shows if there's handling. Here's the technical basis to figure out what the forensic expert will look for and why.

Businessman who suspects that his own business's cameras were tampered with by an employee: Insider's handling of video surveillance systems is more common than it looks. If the dates do not match, if there are gaps in the record, if the video of a period "no longer exists" but that of before and after, these are signs that warrant forensic analysis.

Journalist investigating a case where the official video does not match the testimonies: institutional security videos -- from government units, from C5 and from public installations -- can be as susceptible to handling as any other digital system. The difference is that institutional manipulation tends to be by omission (the video "no longer exists" or "that period was recorded") but by an active editing. Both forms are detectable.

What the eye sees vs. what the file says

A digital video isn't a continuous film. It's a sequence of compressed images following a strict mathematical pattern. And that pattern, when it's broken, leaves prints that are as revealing as a fingerprint at a crime scene.

To understand how editing is detected in a security video, you must first understand how video compression works. This is not complicated, but it is essential.

H.264 and H.265 codecs: the basis of everything

Modern video surveillance systems use two main codecs: H.264 (also called AVC) and H.265 (also called HEVC). They both work on the same fundamental principle: they don't record every entire frame. They record a full frame every now and then, and the intermediate frames only record changes from the previous frame.

Think about it like this: if a security camera is recording an empty hallway, 95% of the image doesn't change from one frame to the next. The floor is the same, the walls are the same, the doors are in the same place. The only thing that changes is what moves: a person walking, a shadow moving, a light flashing. Recording an entire frame 25 times per second when 95% of the content is identical would be an absurd waste of storage space.

Then the codec does something clever: it records a complete frame (called I-frame, for "intra-coded frame"), and then records a series of frames that only contain the differences from the previous one (called P-frames, for "predicted frames", and in some cases B-frames, for "bi-directional frames"). That dramatically reduces the space needed without losing perceptible quality.

The GOP structure: the pattern that reveals the edition

A GOP -- Group of Pictures, photo group -- is the sequence that goes from one I-frame to the next. A typical GOP in a video surveillance system can have 15, 25 or 30 frames: an I-frame at first, followed by 14, 24 or 29 p-frames, and after that another I-frame that starts the following GOP.

This structure is regular. Predictable. Mathematically consistent. The DVR generates GOPs with the same length, one after another, like a clock. 25 frame GOP, 25 frame GOP, 25 frame GOP. Thousands of GOPs per hour. All the same. All following the same pattern.

And this is where the edition gets tipsy.

When someone cuts a piece of video -- removes 5 seconds, removes 30 seconds, removes five minutes -- they are cutting somewhere within the GOP sequence. And unless the cut exactly matches the boundary between two GOPs (which is statistically unlikely if the editor doesn't know what a GOP is), the result is a truncated GOP. A GOP that has 18 frames instead of 25. Or a P-frame that suddenly doesn't have the reference I-frame it needs. Or a sequence where the length of the GOP changes abruptly at a specific point in the video.

That anomaly is invisible in normal playback. The video player compensates, interpolates, does its best to display a continuous sequence. But in the file structure, the anomaly is there. Documentable. Quantifiable. Demonstrable before a judge.

Compression metadata: the second layer of verification

Beyond the GOP structure, the video compression metadata contains information that reveals alterations.

The variable bitrate over time. A security video recorded under normal conditions has a biombate that varies naturally: it goes up with movement (because there are more changes between pictures) and low with a static scene. That variation pattern's organic, continuous, predictable. If at a specific point in the video the bitrate changes abruptly and nonnaturally -- for example, from 2 Mbps to 800 Kbps without a visible reason in the image -- that indicates that at that point two fragments that were tablets were added differently. Two pieces of a puzzle that don't fit naturally.

The encoding parameters. Every time a codec compresses a video, it uses specific parameters: encoding profile, level, entropy settings, quantization tables. In an original video generated by a DVR, these parameters are constant throughout the entire recording because they are set by the device's firmware. If at any point in the video the parameters change, there are two possibilities: either the DVR configuration was changed right at that moment (which would be recorded in the system logs), or the video was partially recoded. And partial recoding is an unequivocal symptom of editing.

Brands of editing software. When a video is processed by editing software -- Adobe Premiere, Final Cut, ffmpeg, even basic editors -- the software leaves its signature in the metadata of the resulting file. Sometimes explicitly (the name of the software in the "encoder" field of the metadata). Sometimes implicitly (encoding parameters that are characteristic of a specific software and do not correspond to those generated by a DVR). It's like finding a different tailor's label sewn inside a suit that supposedly came from the factory.

Hexadecimal analysis: looking directly at the bits

For a forensic forensic expert, the deepest level of analysis is hexadecimal. Open the video file in a hex editor and examine its byte-by-byte structure. It's the digital equivalent of putting a sample under a microscope.

The structure of a video file follows a defined format -- MP4, AVI, or the DVR manufacturer's proprietary format -- with clearly demarcated sections: header, metadata container, video data container, frame indices. Each section has a predictable location, a consistent size, and start and end markers.

When a video is edited, the hexadecimal structure shows anomalies that are definitive:

Discontinuities in table indices. The index of a video file is like the index of a book: it lists each frame with its position in the file and its timestamp. In an original video, that index is continuous and sequential. Table 1, table 2, table 3, each at its corresponding time. A video cut generates a jump in the index: frame 1,458 followed by frame 1,892. The 433 intermediate frames simply do not exist. The player does not notice the absence because it jumps from the timestamp of frame 1,458 to the timestamp of frame 1,892 and plays normally. But in the archive index, the discontinuity is documented.

Orphan data remains. In some cases of unsophisticated editing, data from deleted frames is not completely removed from the file. It is removed from the index (so the player cannot find it) but the data is still physically present in the file structure. A hexadecimal analysis finds them: blocks of video data that are not referenced by any index. Ghosts of paintings that someone wanted to disappear.

Concatenation markers. When two video fragments are joined together, the join point has structural features identifiable at the hexadecimal level: changes in encoding parameters, reset of internal counters, duplication of headers. They are the seams of the edited video, invisible to playback but visible to the digital microscope.

Concatenation markers, in «Is it possible to know if a security video was edited? Forensic analysis»

Video's tipprints vs. system's tipprints: the revealing discrepancy

A security video has two time lines that have to be consistent with each other:

The timestamp of the video. The date and time displayed by the video, both superimposed on the image (overlay) and embedded in the file metadata.

The system timestamp. The date and time recorded by the DVR in its internal logs: when recording started on each channel, when motion was detected, when the system was accessed, when a file was exported, when a USB was connected.

In an unmanipulated video, both timelines are consistent. The video from channel 3 shows 14:32 and the system log confirms that at 14:32 camera 3 was recording in continuous mode without interruption events.

When a video is edited, the inconsistencies between both timelines are revealing:

Unexplained temporary gaps. The DVR log shows continuous recording from 2:00 p.m. to 2:45 p.m., but the video only has from 2:00 p.m. to 2:15 p.m. and 2:30 p.m. to 2:45 p.m. 15 minutes left. If the system was recording continuously (which the log confirms), those 15 minutes existed and were deleted. It is not a technical failure. It's a deliberate edit.

Timestamp jumps. The video shows 14:32:07 followed by 14:32:09 -- a two-second jump that should contain 50 frames (at 25 fps) but only has a GOP change in the file. At normal speed, the human eye probably won't notice the two-second jump. The structure analysis does detect it.

Inconsistency between overlay timestamp and metadata timestamp. In some cases of rough editing, the editor modifies the timestamp superimposed on the image (overlay) but not the metadata embedded in the file structure. Or vice versa. The result is a video where the time seen in the image does not match the time reported by the metadata. It is like a clock whose hands mark 3 but whose internal mechanism marks 5.

The case of the ministerials: when the video refutes the official version

There is one case that illustrates exactly why security video forensics is not a technical luxury but a procedural necessity.

Ministers arrived at a business premises in vehicles without license plates. What happened next generated contradictory versions. The authority alleged certain events at a certain time. The other side said that these events did not occur as described.

The store's security camera was recording. The DVR had recorded the entire period of the events. And when the video was forensically extracted and analyzed, the evidence was overwhelming: at the exact time that the ministers claimed as the time of certain events, the video showed that absolutely nothing was happening in that location.

But the ministerial defense could have argued that the video was edited. That the paintings that compromised them were eliminated. That the timestamp was altered. That the recording was manipulated.

To close that door, forensic analysis verified the complete integrity of the video:

The GOP structure was continuous and consistent throughout the entire recording. There were no truncated GOPs, no abrupt changes in the length of image groups, no orphaned P-frames without their reference I-frame.

Compression metadata was uniform. The same codec, the same variable bitrate with an organic pattern, the same encoding parameters from start to finish. No partial re-encodings, no editing software signatures.

The video timestamps were consistent with the DVR system logs. The DVR recorded continuous recording on that channel for the entire period. No interruptions, no access to the system to export or modify, no USB connections during that period.

Hexadecimal analysis of the file structure showed no discontinuities in indexes, no orphaned data, no concatenation markers.

The video was authentic. Full. Not manipulated. And what it demonstrated was exactly what it seemed to demonstrate: that the ministerial version did not correspond to what the camera recorded.

That level of analysis is what turns a video from "well, it looks like nothing happened" to "the file structure demonstrates that this recording is original, complete and has not been modified since its generation by the DVR, and its content is inconsistent with the version declared by the authority." The first statement is an opinion. The second is a forensic expert report with a technical basis.

Types of handling and how each

Tampering with security video is not a single act. There are different types of editing, each with its own forensic traces:

Cut by elimination (most common)

seconds or minutes are deleted from the video. What remains will be united so that it looks continuous. It's the most common handling because it's the most simple: if what you incriminate lies between minutes 14: 20 and 14: 25, you cut that fragment and stick the ends.

How it is detected: GOPs truncated at the cutoff point. Discontinuity in table indexes. Jump in metadata timestamps. Abrupt change in variable bitrate pattern. The GOP analysis is particularly definitive: the length of the GOP changes at the exact point of the cut, in a way that the DVR would never generate naturally.

Replacement

The video's specific tables with pictures from another source or digitally published pictures are replaced. For example, erase a person from the scene, alter a car plate, modify a visible watch.

How it is detected: Inconsistency in the compression parameters of the replaced frames. The new frames were compressed with different parameters than the rest of the video. Furthermore, P-frames after the replaced frame show anomalies in motion prediction: the algorithm predicted changes based on a reference frame that is no longer the original, generating atypical compression artifacts.

Alteration of timestamps

The date and time of the video are modified to move the facts at a different time. At 14: 30 something compromising happened, but the video was modified to show about 4: 45, an hour where nobody was supposed to have been there.

How it is detected: Inconsistency between the timestamp of the overlay (visible text) and the timestamp of the file metadata. Inconsistency between the video timestamps and the DVR logs. Natural lighting analysis: if the video is supposedly from 4:45 p.m. (afternoon) but the natural light coming through the windows corresponds to 2:30 p.m. (more intense, different angle), physics reveals the editing. The sun doesn't lie.

Complete Recoding

It takes the original video, edits into an editing software, and completely exported as a new file. It's the most sophisticated attempt to cover up handling because it generates a "clean" file without the visible seams of cutting and gluing.

How it is detected: The resulting file does not have the DVR's proprietary structure. The encoder metadata corresponds to the editing software, not the DVR firmware. Compression parameters are generic, not manufacturer-specific. It's like trying to counterfeit a banknote: no matter how good the copy is, it doesn't have the security marks of the central bank. The DVR is the central bank of the video. And a file that did not come out of the DVR does not have the DVR markings.

What Forensics CANNOT Do

Technical honesty requires being clear about limits. Video forensics is powerful, but it is not omnipotent.

If the original video was destroyed and only an edits are available, the analysis can prove that the copies were edits but cannot rebuild what was removed. If they cut 30 seconds from the video, the analysis can prove that this fragment is missing. But you cannot get back those 30 seconds unless you have access to the original DVR disk where data can exist in the unassigned space.

If editing was with advanced forensic knowledge and access to the manufacturer's own format, detection is more difficult but not impossible. A publisher who knows what a GOP is, that respects the length of GOPs, that keeps consistent compression parameters, leaves less traces. But she keeps leaving traces. The discontinuity in the prediction of movement of the p-frames is extremely difficult to fake as it would mean recalculate the whole prediction chain of each box after the editing point. It's possible in theory. In practice, it requires a level of sophistication that goes beyond the capacity of most actors.

If the video was recorded with cell phone (screen video), there's no original DVR file to analyze. The cell phone video is what it is: an indirect recording without proprietary structure, without metadata from the original system, without the possibility of verifying the integrity of the original content. You can determine that it is a screen recording (by image artifacts, perspective, resolution). But you cannot analyze the structure of the "original video" because what you have is not the original video.

If the video was recorded with a cell phone (screen video), isn't there an original file from the... at "It's possible to know if a security video was edits? Forensic analysis"

When to request video forensics

Not every video that "looks weird" has been edited. Video surveillance systems have technical imperfections that may appear to be issues to an untrained observer:

Image skips due to frame loss in motion detection recording (the camera only records when it detects motion, and when the motion stops, the video jumps to the next event). The lighting changes by the automatic white balance adjustment. Compression artifacts in low light conditions. Cuts between scheduled recording periods.

A forensic expert forensic distinction between natural technical artifacts and evidence of deliberate handling. And that distinction's critical, because charging someone with manipulating a video that actually has a regular technical device destroys the credibility of the person making the prosecution.

With that said, these are the situations where a video forensic analysis is warranted:

The video is the central evidence of an accusation against him and there are reasonable grounds to suspect manipulation. Founded reasons mean observable inconstences: temporary lagoons, abrupt changes in the image, discrepancies between what the video shows and what other testimony or evidence indicates.

There is a temporal gap in the video that suspiciously coincides with the critical period of the events. The video exists before and after, but not during. That may be a technical failure (disk full, camera disconnected, power outage) or it may be a deliberate deletion. Forensic analysis can determine which of the two it is.

The video was provided as a copy and not as the original DVR file. Any video that arrives as a "copy" -- on USB, by mail, by file transfer -- without chain of custody and without access to the original DVR for verification, should be analyzed if it is to be used as evidence in a legal proceeding.

The video timestamps are not consistent with other elements of the investigation. If the video says something happened at 3: 00 p.m. but phone records, witnesses or cameras at another angle indicate that something happened at 3: 15 p.m., there's a discrepancy that needs technical explanation.

FAQ

How much does a forensic video analysis cost?

It depends on the length of the video, the complexity of the analysis required and the number of suspicious points that need to be investigated. Analyzing a 30-second clip with a suspicious cut point is not the same as analyzing 48 hours of multi-camera recording. Duriva evaluates each case and provides a scope and budget before committing resources.

Can the forensic analysis determine who posted the video?

In some cases, yes. If the editing was done on the DVR itself using its selective export functions, the DVR logs record who accessed the system, when, and what operations they performed. If editing was done on a computer, the file may contain metadata from the software used and, in some cases, the user of the operating system. But attribution is not always possible, particularly if the publisher took precautions to remove those marks.

Can you alter a video so that it's completely undetectable?

In absolute theory, if an editor has access to the proprietary format, the DVR firmware, the system logs, and has expert-level forensic knowledge, they could create an edit that is extremely difficult to detect. In practice, Duriva's team has not found a case where an edit was absolutely undetectable. There is always something: a discontinuity in the P-frames, an anomaly in the bitrate, an inconsistency in the logs, a mismatch in the image noise pattern. Perfection in video manipulation is like the perfect crime: it exists in theory but fails in practice.

If the judge's already admitted his video as evidence, can I still challenge him?

Yeah. The acceptance of evidence does not preclude its subsequent challenge. The lawyer can apply for a forensic examination of his video even after his admission. If the examination shows that the video was jammed, that evidence will be submitted as an advanced evidence or as a counterperics that challenges the authenticity of the originally admitted evidence. The ideal time is before admission, but this isn't the only time.

What if the original video doesn't exist and I have only the copies I was given?

Copies can be analysed to determine if they have editing signals. If they are submitted, they are documented at forensic expert report. If you do not have them, it's documented that the copies have no sign of handling but that the analysis was performed on a copy and not on the original DVR file, which limits the scope of the findings. The absence of the original always weakens the position of whoever offers the video as evidence.

What to do if you suspect a video against them was published

First, don't say that publicly. Do not post on social media that the video is fake. Don't mention it openly. Discuss it exclusively with your lawyer. The challenge of evidence is made in the file, not in public opinion.

Second: get a forensic copy of the video if possible. Your lawyer can ask the judge to have access to the original DVR file for an independent forensic expert extraction. Ideally, the analysis should be made about the original file, and not about the copies offered by the counterparty.

3: request DVR login. System logs are the second most valuable source of information after the video itself. They record accesses, exports, configuration modifications, USB connections. If someone tampered with the video, logs can document when and how the system was accessed to do so.

Fourth: contact a forensic expert specialized in video forensics. Not every computer forensic expert has experience in video forensics. Analysis of GOP structure, compression metadata, bitrate patterns and hexadecimal structure of proprietary formats requires specialized knowledge. Duriva has that experience documented in multiple cases where video analysis was the centerpiece of the forensic expert report.

Fifth: Don't assume that it was published just because "it looks weird." Forensic analysis can show that the video was edited. But it can also prove that the video is authentic and that what looked like an edit was a normal technical artifact. And in that case, having bet the entire defense on challenging the video would have been a strategic error. Let the forensic expert analyze and let the data do the talking.

A security video can be the most solid proof that exists. Or it can be the best lie in disguise. The difference between them cannot be seen on the screen. It looks at the structure of the file, at the compression metadata, at the GOPs sequence, at the coherence of the timprints, at the consistency of the bitrate pattern, and at the hexadecimal structure of the container.

The human eye sees the image. Forensic analysis sees the truth behind the image.

If you're being put up with a video as a test and something's wrong, don't ignore that discomfort. But don't trust her blindly. What you need isn't an opinion about if the video looks weird. What she needs is a forensic analysis that will determine, with technical precision and evidentiary rigor, whether that video's what she claims to be.

The data doesn't lie. But the videos, without forensic analysis, sometimes do.

Contact
Let's talk about your case
Open contact form