Splashhound is a tool for managing, viewing and reviewing a private collection of pooltoy-related videos.
  • Rust 55.9%
  • JavaScript 35.4%
  • CSS 6%
  • Python 1.4%
  • Shell 0.7%
  • Other 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
InflaTool Dev beff3b5b89 Suggest tags, toys and creators from the file name
Adds rule-based label proposals shown as clickable chips in the detail and
rate views. Nothing is saved until a suggestion is accepted and the video is
saved.

How it works (src-tauri/src/suggest.rs):
- The file name and folder path are flattened (separators and punctuation
  become spaces) and matched against the toys, tags and creators the library
  already uses, with whole-word matching so "cat" does not hit "category".
- A small synonym table maps common spellings to existing labels
  ("bball" -> Beach Ball, "killer whale" -> Orca, "floatie" -> Swim Ring,
  "alligator" -> Crocodile, ...).
- Creator suggestions prefer a file-name prefix ("Fuusen - ..."), which is how
  most of the collection is named.
- Longer names are matched first and consumed, so "Killer Whale" does not also
  propose "Whale".
- At most six chips are shown, ordered by confidence.

UI:
- "Suggested" chips under Creator, Tags and Toys; clicking one fills the form
  and removes the chip. Suggestions already present on the video are hidden.
- Proposals load after the form renders, so opening a video stays instant.

Measured against the existing hand labels: 86% precision for toy/tag matches,
and 855 of 1,551 unlabelled videos (55%) get at least one proposal. A text
classifier was evaluated too and scored much worse (33% precision), which is
why this uses rules only.

29 tests pass; clippy is clean.
2026-11-25 21:32:14 +01:00
.github/workflows Fix .deb not attached to releases (artifact path nesting) 2026-11-16 12:04:53 +01:00
packaging Bump version to 1.3.1 2026-11-22 23:16:52 +01:00
src-tauri Suggest tags, toys and creators from the file name 2026-11-25 21:32:14 +01:00
tools Add movable database location, themed tag/creator autocomplete, and dog logo icon 2026-11-16 02:06:14 +01:00
ui Suggest tags, toys and creators from the file name 2026-11-25 21:32:14 +01:00
.gitignore Remove duplicated .gitignore entry 2026-11-16 15:09:03 +01:00
LICENSE Prepare 1.0.0 release: GPL-3.0 license, CI and release workflows, Leetdog attribution 2026-11-16 11:38:33 +01:00
Quest.txt Scaffold Tauri 2 app: config, icons, gitignore 2026-11-16 00:50:58 +01:00
README.md Bump version to 1.3.1 2026-11-22 23:16:52 +01:00

Splashhound

Created by Leetdog.

A local-first desktop tool for indexing, categorizing and browsing a video collection. Built with Rust + Tauri 2, SQLite for the library, and a plain HTML/JS frontend rendered in WebView2.

Everything runs on your machine: the only network listener is a 127.0.0.1 HTTP server used to stream video with range requests and serve generated preview frames.

Requirements

  • Windows 10/11 with the WebView2 runtime (preinstalled on current Windows), or Linux with WebKitGTK 4.1 (Ubuntu 24.04+, Debian 13+, current Arch)
  • ffmpeg — required for previews and for playing formats the webview cannot decode natively (MKV, FLV, WMV, AVI, …)
winget install Gyan.FFmpeg        # Windows
sudo apt install ffmpeg           # Debian / Ubuntu
sudo pacman -S ffmpeg             # Arch

The app also auto-detects ffmpeg installed to a custom folder via Settings → ffmpeg. On the first launch without ffmpeg it shows a setup prompt with the install command for the current platform and a "Check again" button.

Install (prebuilt)

Prebuilt binaries are attached to Releases:

  • Windows: unzip splashhound-windows-x64.zip and run splashhound.exe. WebView2 is required (preinstalled on Windows 10/11); ffmpeg is recommended.
  • Ubuntu / Debian: install the .deb with sudo apt install ./splashhound_1.3.1_amd64.deb. Requires Ubuntu 24.04+ or Debian 13+ (WebKitGTK 4.1).
  • Other Linux: unpack splashhound-linux-x64.tar.gz and run ./splashhound. It is built against Ubuntu 24.04, so it needs glibc 2.39+ and WebKitGTK 4.1, GTK 3 + libayatana-appindicator (Arch: webkit2gtk-4.1, gtk3, libsoup3, libayatana-appindicator).
  • Arch Linux: build with packaging/arch/PKGBUILD (cd packaging/arch && makepkg -si), or install the splashhound AUR package once published.

The Windows, Linux and .deb builds are produced by GitHub Actions for every v* tag; see packaging/README.md for local packaging and AUR instructions.

Running

cargo run --manifest-path src-tauri/Cargo.toml

or build a binary:

cargo build --release --manifest-path src-tauri/Cargo.toml
# -> src-tauri/target/release/splashhound.exe

To create an installer, install the Tauri CLI once and bundle:

cargo install tauri-cli --version "^2"
cd src-tauri
cargo tauri build

First use

  1. Settings → Choose… and pick the root folder of your library. A scan starts automatically.
  2. The scan walks the folder recursively, reads duration/resolution/codecs with ffprobe, computes an MD5 hash per file for duplicate detection, and flags files that disappeared as missing.
  3. New videos are queued in the Rate view.

Folders named _trash are excluded from scans — that is where removed duplicates go.

Views

Library

Grid of every indexed video with poster frame, duration, size, resolution, rating and flag badges.

Filters: full-text search (name, path, creator, notes), tag chips (any/all matching), NSFW, Popping, Destruction, reviewed state, minimum rating, creator. The flag filters only appear when the flag is enabled in Settings. Sorting: newest added, name, rating, most viewed, longest, largest, random. Shuffle re-rolls a random order. Click a card for the detail view (player, 12 preview frames, editable metadata).

Rate

One view for all uncategorized videos: large player, 12 frames sampled across the video (click a frame to seek), and a panel for creator, NSFW, popping, destruction, deflation, inflation, free-form tags, notes and a 1–5 star rating.

  • Enter — save & next (marks the video reviewed when the box is ticked)
  • S — skip (saves edits but keeps it unreviewed)
  • 1–5 — rating
  • N P D F I — toggle the flags

Tags autocomplete from previously used tags; new ones are created on save.

Duplicates

Groups byte-identical files by MD5. Pick the keeper with the radio button or Auto-pick keeper (most viewed, then oldest), then move the rest to <library>/_trash. Nothing is deleted permanently.

Stats

Collection overview: videos, reviewed share, total size and duration, never viewed, recently added, videos without toys or tags, trash and DNA progress, plus rating distribution, toy counts, creators and folder counts.

Old codecs

Lists every video that will not play smoothly — WMV/VC-1, MPEG-1/2, MPEG-4 ASP (Xvid/DivX), Sorenson FLV, Indeo, MJPEG, high-bit-depth H.264, HEVC when the webview has no HEVC decoder, and files with VFR (variable frame rate) timestamps — with codec, resolution, size and length. Select files and either:

  • Build playback cache — converts them into the playback cache. Nothing on disk changes, playback starts instantly afterwards, and the entries count toward the cache limit.
  • Convert to MP4 — writes a real .mp4 next to the original, adds it to the library with the same tags, rating and flags, and optionally moves the source to _trash.

Both run in the background with a progress bar, a cancel button and a list of failures. Quality controls the encoder effort: Fast (x264 veryfast, CRF 23) is quickest and writes the smallest files, Balanced (medium, CRF 21) is the default, and Quality (slow, CRF 18) is slowest and keeps the most detail. The choice is remembered.

Settings

Library folder, scan progress/stop, ffmpeg location, database/cache/trash paths, hashing mode, cache limit, tag management, metadata export/backup and library statistics.

Index

By default the SQLite database lives in the app's data folder:

  • Windows — %APPDATA%\com.splashhound.desktop\library.db
  • Linux — ~/.local/share/com.splashhound.desktop/library.db (or $XDG_DATA_HOME/com.splashhound.desktop/library.db)

Settings → Storage → Change folder… moves it elsewhere: the database is copied to the new folder, the current file is kept as a backup, and an existing library.db at the target is renamed aside first. The chosen location is remembered in config.json next to the default folder, so the app finds it on startup.

videos columns: file name, path, size, modification time, duration, width, height, video/audio codec, has-audio, MD5, creator, NSFW, popping, destruction, deflation, inflation, notes, rating (0–5), reviewed, view count, last viewed, date added, missing.

Each row also stores its path relative to the library root. If you move the collection to another disk, choose the new folder in Settings: when the relative layout matches, all entries are re-linked in place and keep their tags, ratings and toys. Files that no longer exist are flagged as missing; Settings → Data → Remove missing entries clears those rows.

Tags live in a separate tags table with a video_tags join table, so the "other tags" field is a proper many-to-many tag set. Toys use their own toys / video_toys tables, so the inflatable shown in a video can be tagged and filtered independently of general tags.

Generated preview frames and converted playback files are cached in %LOCALAPPDATA%\com.splashhound.desktop on Windows and ~/.cache/com.splashhound.desktop ($XDG_CACHE_HOME) on Linux, and can be cleared from Settings.

Every card needs one cached frame (the poster). On a mechanical disk that costs ~100–140 ms per card, so a page of 60 would stay blank for a while. Two things keep scrolling responsive:

  • a 40 px placeholder of each poster is stored in the database (~1 KB per video) and painted immediately, then swapped for the real frame;
  • after a scan the missing posters are generated in the background (Settings → Previews, on by default, also available as a button).

Indexing and cache

By default only files whose size collides with another file are hashed — a unique size can never be byte-identical to anything else, so this avoids reading the whole library. Switch to "hash every file" in Settings for full MD5 coverage. Probing and hashing show progress with a time estimate.

The cache holding previews and converted playback files has a size limit (default 4 GB, configurable) and evicts the oldest entries automatically.

Near-duplicates (Video DNA)

The Duplicates view has Exact (MD5) and Similar (Video DNA) tabs. DNA analysis samples frames across each video, hashes them perceptually and compares the sequences, which finds re-encodes or different resolutions that MD5 cannot. It runs on demand from that tab, is incremental and cancellable, and persists.

Extra workflow

  • Folders: filter the library by subfolder; "Rate this folder" scopes the rating queue to the current folder selection.
  • Batch editing: click Select, pick many cards, then set tags, toys, creator, flags, rating or reviewed state for all of them.
  • Trash: files moved out of the library are recorded there and can be restored with their tags/ratings, deleted individually, or selected in bulk (restore selected / delete selected / delete all).
  • Deleting videos: the detail view and the Rate view have a "Move to trash" button, so removing something is always reversible.
  • Detail navigation: Prev/Next buttons and the left/right arrow keys move through the current view, including while the player is fullscreen (fullscreen is kept when the video changes). Shift+Left/Right seeks 10 seconds, Ctrl+Left/Right seeks 1 minute.
  • Duplicates: click a filename in either duplicate tab to open the detail player for that exact copy.
  • Tags: rename (merging into an existing name) or delete tags in Settings.
  • Visible fields: Settings can hide the NSFW, Popping or Destruction flags from the editor, filters, badges, bulk edit and shortcuts. Data is kept, so unhiding them brings everything back.
  • Bulk duplicate cleanup: "Keep best in all" in either Duplicates tab keeps the highest-quality copy of every group and moves the rest to trash.
  • Quick chips: the most-used toys and tags appear as dashed one-click chips under the toy/tag inputs.
  • Discreet mode: blurs posters, thumbnails and names until you hover; toggle it in Settings or with Ctrl+H.
  • Data: export/import tags, ratings and flags as JSON, and back up the database file.
  • Scrolling: the library loads the next page automatically when you reach the bottom.

Playback

  • MP4/MOV/WebM with H.264, VP8, VP9 or AV1 play directly.
  • HEVC/H.265 plays directly when the WebView2 runtime reports an HEVC decoder — on Windows that means the HEVC Video Extensions package (or an OEM equivalent) plus a GPU that supports it. The app probes this at startup instead of assuming, so those files are only converted when they would not play. 4:2:2 and 4:4:4 HEVC always need conversion.
  • Any other container that holds a decodable video stream — MKV, TS/M2TS, FLV, AVI, MPG — is remuxed to a cached MP4. The video is copied bit for bit; the audio is copied as well when MP4 can hold it (AAC, MP3) and re-encoded to AAC only when it cannot (AC3, DTS, PCM, …).
  • WMV/VC-1, MPEG-1, MPEG-2, MPEG-4 ASP (Xvid/DivX), Sorenson FLV, Indeo and MJPEG are transcoded to H.264/AAC once and cached.
  • H.264 must be 8-bit 4:2:0. Hi10P and 4:2:2 files are transcoded because WebView2 cannot decode them.
  • Variable frame rate files (screen recordings, some studio exports) are a separate problem: the codec is fine, but irregular timestamps make Chromium stutter at every gap while VLC smooths over them. The detail view labels the frame rate as (variable) and the file is listed under Old codecs; converting it writes constant frame timestamps.

The first playback of a non-native file shows conversion progress; afterwards it starts immediately.

Built-in stream player (testing branch)

Files WebView2 cannot decode — and files with a variable frame rate — are played by the built-in player instead of being converted: ffmpeg decodes the source and streams a constant-frame-rate fragmented MP4 into a MediaSource over a WebSocket. Nothing is cached, audio stays in sync, and VFR files no longer stutter because the output timestamps are uniform.

  • Encoder: the best hardware encoder the machine can actually use (h264_nvenc, h264_qsv, h264_amf, h264_vaapi — each is test-encoded once) with libx264 as fallback. Decoding uses the matching GPU path too (cuda, qsv, d3d11va, vaapi) when the source codec supports it, so the frames never leave the GPU. Measured at 1080p: process CPU is ~0.02 cores with CUDA + NVENC.
  • Seeking: the decoder runs ahead of the playhead (5–60 s, 30 s by default, configurable in Settings → Playback) and the player reports how far ahead it is, so any seek inside that window jumps without restarting the encoder (measured 0 ms). The same amount is kept behind the playhead and older data is trimmed, so memory stays at roughly 1 MB per buffered second (30 s ahead + 30 s back ≈ 60 MB at 1080p) instead of growing over a long session. Bigger jumps restart the encoder at the target while the last frame is held and settle in ~0.3–0.5 s.
  • Start: the decoder is started while the detail view is still rendering, so the first frame arrives in ~0.5 s.
  • Controls: play/pause, scrub bar, volume/mute, fullscreen (button, F11 or double-click), badges. Hotkeys: Space, M, ↑/↓, Shift/Ctrl+←/→, F11.

Toggle it in Settings → Playback.

Development

ui/                 frontend (index.html, styles.css, app.js — no build step)
src-tauri/src/
  lib.rs            app setup, shared state, headless dev mode
  db.rs             schema and queries
  media.rs          ffprobe, MD5 hashing, thumbnails, conversion
  scan.rs           folder walk + indexing pipeline
  server.rs         localhost media server (range requests, thumbs)
  commands.rs       Tauri IPC commands
tools/
  make_icons.py     regenerate the placeholder app icons (.png + .ico)
  ui_probe.py       drive the running app over the WebView2 devtools protocol
  seed_dev_db.py    point the dev database at a folder without clicking

Regenerating icons: python tools/make_icons.py writes every size plus icon.ico. Because the icons are embedded by the Tauri codegen, a plain cargo build may not pick them up — run cargo clean -p splashhound (or cargo clean --release -p splashhound) and rebuild.

Headless indexing (also used for manual verification):

splashhound.exe --scan "D:\path\to\videos"
splashhound.exe --scan "D:\path\to\videos" --serve   # keep the media server up
./splashhound --scan "$HOME/Videos"
./splashhound --scan "$HOME/Videos" --serve

Debug builds accept remote debugging through WebView2:

$env:WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS = "--remote-debugging-port=9222"
cargo run
python tools/ui_probe.py eval "document.querySelectorAll('.card').length"