What’s a PHash?

Perceptual hashes are generated from what a video looks like, allowing for more reliable scene matching with StashDB.

Perceptual hashes (PHashes) are one of the main reasons why we recommend using StashDB with Stash. PHashes are used to match your video files with scene entries on StashDB. Even files of differing resolutions, encodes, or download sources will often be similar enough to still match with StashDB. In other words, your files and their hashes don’t have to be exact matches with the fingerprints on StashDB. Stash will be able to find matches as long as your video looks just similar enough to somebody else’s fingerprint submission. This level of fuzzy matching makes our system much more reliable, flexible, and versatile than alternative approaches. PHashes can also be used in Stash to detect duplicate files in your library, using the “Scene Duplicate Checker” in the “Tools” tab of the Settings page.

PHashes are not generated in Stash by default, so you will need to create them yourself. They may be generated during a Scan by activating the switch next to “Generate perceptual hashes” or through the Generate task (in the “Tasks” tab of the Settings page or the “Generate…” option with individual scenes selected) next to “Perceptual hashes (for deduplication)”. These may be submitted to existing scenes on StashDB along with other fingerprints using the Scene Tagger and will be included automatically when submitting new scenes via draft.