vfp_compare - Video Fingerprint Comparison Tool¶
📦 Source Code: View on GitHub
Overview¶
vfp_compare is a command-line tool that compares two video fingerprint files to determine if the videos are similar or identical. It's useful for detecting duplicate videos, finding similar content, or verifying video integrity.
Features¶
- Compare pre-generated video fingerprints
- Fast comparison without re-processing videos
- Configurable similarity threshold
- Returns numerical difference score
Usage¶
Required Parameters¶
-f, --f1: Path to the first fingerprint file-s, --f2: Path to the second fingerprint file
Optional Parameters¶
-d, --md: Maximum acceptable difference (default: 500)-l, --license: VisioForge license key (default: "TRIAL")
Examples¶
Basic comparison¶
Comparison with custom threshold¶
Using license key¶
Output¶
The tool outputs: - Difference score (lower = more similar) - Comparison result based on threshold - Processing time
Understanding Difference Scores¶
- 0-5: Nearly identical videos (same content, minor encoding differences)
- 5-15: Very similar videos (same content, different quality/compression)
- 15-30: Similar videos (same content with edits, logos, or watermarks)
- 30-100: Related content with significant differences
- 100-300: Different videos with some similar scenes
- 300+: Completely different videos
Use Cases¶
- Duplicate Detection: Find exact copies of videos in different formats
- Quality Comparison: Compare different encodings of the same video
- Edit Detection: Identify if a video has been modified
- Copyright Verification: Check if content matches original source
Workflow Example¶
-
Generate fingerprints for videos:
-
Compare the fingerprints:
Performance Notes¶
- Comparison is nearly instantaneous
- Memory usage is minimal (loads fingerprints only)
- No video decoding required
Error Handling¶
The tool will exit with an error if: - Either fingerprint file doesn't exist - Fingerprint files are corrupted - Fingerprints were generated with incompatible settings
Best Practices¶
- Use "compare" type fingerprints (generated with
-t compare) for best results - Keep fingerprints with their source videos for reference
- Document the difference threshold used for your use case
Related Tools¶
vfp_gen: Generate fingerprints from video filesvfp_search: Search for fragments within videosDVS: GUI tool for finding duplicate videos in folders