dsh-duplicate-file-check
File dedupe and unify toolkit, shown as "小视频整理" in the DSH sidebar: exact matches by head/middle/tail sampling or full byte compare; near-duplicate MP4s found by a prefix frame-level multi-candidate matcher (only the first N seconds, default 40, max 60; a frame-level index plus multiple candidate tracks handle shifted intros and repeated segments). The "ignore intro" scan maintains a SQLite fingerprint cache keyed by absolute path and size, with MAD-first frame lookup and dHash/pHash fallback; incomplete cache rows are removed and rebuilt automatically, and a full scan rebuilds the band index. A "quick file lookup" takes one file, uses the cache when present, generates its fingerprint on demand when missing, and reports a task with live logs, progress and cancellation without rescanning the source folder. Duration-bucket matching always probes and captures fresh, and does not use the fingerprint cache. Batch rename or move by extension, UUID, file size or video length; empty-folder cleanup; MOV/AVI/WMV detected by header and transcoded to MP4 keeping resolution, frame rate and audio. Requires ffmpeg and ffprobe. Scans run in a sidecar worker with live progress, A-B single-direction dedupe and asynchronous fingerprint writes; one task at a time; local-only API. Every task that moves files has one-click restore: per-group/target _dupfc_restore.json records, deleted files skipped and counted, files outside the record renamed to UUID and moved into resetFail.
Overview
File dedupe and unify toolkit, shown as "小视频整理" in the DSH sidebar: exact matches by head/middle/tail sampling or full byte compare; near-duplicate MP4s found by a prefix frame-level multi-candidate matcher (only the first N seconds, default 40, max 60; a frame-level index plus multiple candidate tracks handle shifted intros and repeated segments). The "ignore intro" scan maintains a SQLite fingerprint cache keyed by absolute path and size, with MAD-first frame lookup and dHash/pHash fallback; incomplete cache rows are removed and rebuilt automatically, and a full scan rebuilds the band index. A "quick file lookup" takes one file, uses the cache when present, generates its fingerprint on demand when missing, and reports a task with live logs, progress and cancellation without rescanning the source folder. Duration-bucket matching always probes and captures fresh, and does not use the fingerprint cache. Batch rename or move by extension, UUID, file size or video length; empty-folder cleanup; MOV/AVI/WMV detected by header and transcoded to MP4 keeping resolution, frame rate and audio. Requires ffmpeg and ffprobe. Scans run in a sidecar worker with live progress, A-B single-direction dedupe and asynchronous fingerprint writes; one task at a time; local-only API. Every task that moves files has one-click restore: per-group/target _dupfc_restore.json records, deleted files skipped and counted, files outside the record renamed to UUID and moved into resetFail.
Installation
Version compatibility
Compatibility is unconfirmed. Check the project documentation for supported versions.
Installation notes
- May run terminal commands