This repo aims for developing a automatic batch video similarity tester.
FFMPEG
On windows, download Chocolatey, and use it to install ffmpeg with command "choco install ffmpeg" in cmd/pwsh/pwsh7.
Format your CSV file content to be either in PATH or YouTubeURL
Python environment:
python main.py ./URL.csv ./cache ./cache --remove-cache --weight=0.7
Downloaded release: (Download)
vst_v1.2.0.exe ./PATH.csv ./cache ./cache --remove-cache --weight=0.7
Help message:
python main.py <input_file> <cache_path> <export_result_path> [--remove-cache] [--weight=<weight>] [-h/--help]
For URL links: ONLY ACCEPT YOUTUBE LINKS
Weight calculation: (hash_similarity * weight) + (fingerprint_similarity * (1-weight))
sys.argv[1] path of list file
sys.argv[2] path of cache folder
sys.argv[3] path of export result folder
sys.argv[?] (--remove-cache) remove cache after execution
sys.argv[?] (--weight) weight of videohash method (default: 0.7)
sys.argv[?] (-h/--help) help (show available options)
The program will generate the results in your specified location, like VideoDetail and ComparisonResult
If any error occurs, please send the "./vst.log" file to me for further debugging.
- Generate video hash.
- Generate video fingerprint.
- Compare all video combinations possible and generate corresponding similarity data.
- Normalize fingerprint similarity data to limite data range.
- Calculate mix similarity data with user given weight to both hash and fingerprint data.
- VideoHash
- PyTube
- Python - difference between two strings
- A better similarity ranking algorithm for variable length strings
- VideoFingerPrint
pyinstaller "./main.py" --noconfirm --onefile --console --clean --name="vst_v1.4.0"