Home > Video Fingerprinting SDK > .Net - How to compare two video files

.Net - How to compare two video files

Get comparing fingerprints for two video files, using DirectShow engine, first 5 seconds for an each file

VFPFingerPrint fp1 = VFPAnalyzer.GetComparingFingerprintForVideoFile(filename1, VFMediaPlayerSource.File_DS, 5, false);
VFPFingerPrint fp2 = VFPAnalyzer.GetComparingFingerprintForVideoFile(filename2, VFMediaPlayerSource.File_DS, 5, false);


Find difference between files, with possible shift is 5 seconds

int diff = VFPAnalyzer.Compare(fp1, fp2, (int)5);