VionetoVioneto
Back to the magazine

VIONETO MAGAZINE Playback & technology

Compare video copies by checksum and playback

Same filenames do not prove identical files. A dedicated copy and metadata test shows how to combine a SHA-256 comparison with file matching and a meaningful playback sample.

Three steps to video copy: assign the correct version, compare the full checksum, and open the required content.
Byte-level equality, version, and playability answer different questions.Image: Vioneto · original illustration

You copy a finished film into the archive. Both files have the same name, their size is similar, and the preview shows the same content. Yet several questions remain unanswered regarding reliable assignment: Are the stored bytes exactly identical? Does the file belong to the intended version? And can it be used with the intended tool?

A checksum helps answer the first question. For this comparison, a value is derived from the entire file content using the same algorithm. In our example, we use SHA-256. The stored original value and the newly calculated value of the copy are then fully compared.

Save the desired output file

Start with the deliberately selected version. Record the film identifier, filename, byte count, algorithm, complete hash value, and verification date. Specify the purpose of the file, such as source or final delivery export. A checksum of the wrong film may correctly identify its copy but still confirm the incorrect task.

Microsoft explicitly states in Get-FileHash that the file content serves as the reference. Renaming a file path does not automatically alter this content. Conversely, a file can be modified under the same name. Therefore, the filename does not replace the comparison.

Personal trial with a renamed copy

Our own eight-second H.264 test file is 617,054 bytes in size. We copied it under a different filename and compared both the SHA-256 hash value and the complete byte sequence. The copy matches the original exactly. Changing the filename has not affected the stored content.

The complete SHA-256 value of the source file starts with 923d50cb and is stored in full within the accompanying verification document. In a diagram, a truncated beginning may be used as an example. However, these initial characters alone are not sufficient for actual verification: both full values are compared using the same algorithm.

A different hash initially indicates different bytes.

Subsequently, we added a comment as metadata in another standalone MP4 version without re-encoding the video stream. This file has a size of 617,118 bytes and a different overall hash, starting with a7728d83. Therefore, it is not a byte-for-byte backup of the original file.

In addition, we have fully decoded both versions and calculated a SHA-256 value for each of the 200 output video frames. All frame values match between the two versions. The specific result shows that a modified overall hash indicates a file change; however, it alone does not reveal which component was altered or whether visible image data is affected.

The original source and its renamed copy have the same complete SHA256 value; a file with an added comment has a different overall hash but retains the same 200 decoded image hashes.
The metadata version is not a byte-for-byte copy. Identical pixel values confirm only the compared video frames.Image: Vioneto · original illustration

This image comparison also has its limits. It verifies the decoded video frames of our silent files under the used structure. It does not check all possible container metadata and includes no audio track. Therefore, a differing hash in a foreign file requires targeted investigation, not an automatic replacement of the current reference.

A manageable verification path

  1. Select the original file and the desired version clearly. Capture the full SHA-256 hash value and byte count.
  2. After copying, recalculate the hash of the target copy. Compare the algorithm and the complete value.
  3. When discrepancies occur, determine the cause: wrong version, incomplete transfer, or intentional editing? Keep the original reference until the issue is resolved.
  4. Open the selected file using the intended tool in addition. Verify the image, audio, and required supporting information at relevant points.

In PowerShell, you can examine a specific known file path using Get-FileHash with the -Algorithm SHA256 parameter. The -LiteralPath parameter treats the specified path literally. Use the actual files you want to compare and save the output to the corresponding hash file. Our test used local files and existing tools.

Verify checksum, version, and backup together

The Canadian guide to digital preservation describes stored checksums and subsequent comparisons as integrity checks. It treats backup copies and their storage as additional responsibilities. A hash does not restore lost data and does not create an additional copy.

Therefore, for your video project, clear reference versions, appropriate separate copies, and traceable verification values must be combined. After a planned editing process, a new documented version is created with a new reference value. Never overwrite an old value without comment, simply to eliminate a deviation.

Inventory dependencies before switching video hosting services

Keep changes to the film and accompanying materials synchronized.

Sources and actual extent

Original tests conducted on 27.10.2026. Copy and metadata analysis carried out exclusively on internally generated synthetic files; both distinct MP4 versions fully decoded. No actual customer archive, backup operation, or recovery process was established or executed.

Microsoft Learn: Get-FileHash

Canadian Heritage Information Network: digital preservation of cultural collections

Topics

Sources and further reading

  1. https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-filehash?view=powershell-7.6
  2. https://www.canada.ca/en/heritage-information-network/services/digital-preservation/recommendations-small-museums.html