I have a bunch of wmv files (~300), named the following way: video1.wmv -> videox.wmv. Some of these video files, are exact duplicates of one another (same format, same bitrate, same length, basically, they were copied and renamed, so the only thing that differs from them is their name). Is there any way to find out if two video files from this group are identical or not, so I would be able to filter out the duplicate ones?Comparing their size is unfortunately out of the question, because I manually went through some of them, and because each of them is around the same length(even the non duplicate ones), some have identical sizes, but they are not identical per se.If there is a possibility, I would prefer a method which could be implemented as a PHP script, but any other method of comparing them would be welcome.Thanks!
Comparing 2 video files
comparison;video
A general algorithm is to compute the SHA256 hash of each file, then sort the hashes and look for duplicates.  After sorting any duplicates that may exist will be consecutive.  For all practical purposes, you can assume that two files will be identical if and only if their SHA256 hash is the same.If you're asking how to do this from the command line or looking for a product recommendation, take a look at this:https://unix.stackexchange.com/q/71176/9812https://superuser.com/q/8223/93541https://superuser.com/q/46690/93541