The One-Writer Media Database
The One-Writer Media Database
My library has about 45,000 video clips, more than 650,000 photo rows and a growing pile of music, sound effects and voice takes. The taggers wrote a CSV into every folder. None of it could answer one question across the drive, two taggers disagreed about the same clips, and the photo index once held 1.06 million rows against about 657,000 live photos, because nothing ever removed a row for a file that was gone.
This kit is the layer I built above the taggers. A contract every tagger writes to. Staging that keeps each tagger’s opinion and a master table rebuilt from it every run. Written merge rules: the probe’s measurement wins technical fields, the newest tag wins judgment calls, keywords are unioned, disagreements are recorded. Controlled vocabulary with the raw words kept, a probe pass, buckets named for the slot a file fills, ghost pruning with a safety floor, duplicate grouping, a query command, a search service and one rule that protects it all: one machine writes, every other machine reads.
what’s inside
The architecture blueprint (PDF and Word, 39 pages)
The tagger CSV contract (PDF and Markdown): every column for video, photo and audio
The starter code: crawler, probe, vocabulary, query command, search service, thumbnails, exports, the one-writer layer, a self-test with 50-plus checks and the refresh script
Three SQL schema files
launchd, cron and systemd templates
A sample library (tagger CSVs for a fictional food brand’s shoot, plus a script that makes the test files)
The terms of use (first file in the zip)
who it’s for
Technical creators, small agencies, studios and in-house content teams with tens of thousands of tagged photos, clips and audio files on a shared drive, comfortable running Python scripts from a terminal.
file formats
PDF, DOCX, Markdown, Python 3 (standard library plus Pillow), bash, SQL, plist, systemd unit files, CSV and text. Needs free ffmpeg for video and audio. No API keys. One zip, delivered by download link.
By buying you accept the terms of use: https://gallucci.net/terms
