mediatheque-agent
Local agent for Médiathèque — the media library service that finds duplicate files and recompresses video so your libraries take only the space they deserve.
The agent runs where your media lives (your machine, NAS, or server) and does all the heavy work locally: scanning, fingerprinting, duplicate detection, and video compression. Your files never leave your equipment — only metadata and small thumbnails travel to the control plane.
Install
pip install mediatheque-agent
ffmpeg must be on PATH (video fingerprints, thumbnails, compression).
Quick start
mediatheque-agent init # writes ./mediatheque.toml
# edit libraries + add server_url / agent_id / device_token from the dashboard
mediatheque-agent scan # index your libraries
mediatheque-agent dedupe # report duplicate groups
mediatheque-agent daemon # connect to the control plane (review + compress)
What it finds
- Exact duplicates — byte-identical images (BLAKE2b)
- Re-encoded duplicates — videos matched by 3-frame perceptual fingerprints, so a HEVC/AV1 copy of the same clip still matches
- Compression wins — HEVC/AV1 (CPU or VAAPI) or quality-targeted ab-av1 encoding, with a per-file "no worthwhile encode" verdict cache
Removals are always trash-first with a JSONL audit log — nothing is ever unlinked outright.
Compression policy
Disabled by default; opt in globally or per library:
[compress]
enabled = true
codec = "hevc" # hevc | av1
encoder = "cpu" # cpu | gpu | abav1
min_duration = 60
License
FSL-1.1-MIT — free for nearly all use; converts to MIT two years after each release. See LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mediatheque_agent-0.2.0.tar.gz.
File metadata
- Download URL: mediatheque_agent-0.2.0.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0be807671e42bc441dccd9522306a96694b940db30962707afcc3bd72b4f3886
|
|
| MD5 |
62682d14fcb46ac83300658b20d77432
|
|
| BLAKE2b-256 |
eb139b8f75fc125c4844699bff40d75d9f5d56f8965f2fa517a952e1d6776de6
|
File details
Details for the file mediatheque_agent-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mediatheque_agent-0.2.0-py3-none-any.whl
- Upload date:
- Size: 33.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f73eaad6d7a3cd38cba6229949b80965792e8f7616179978469f17f02c528e34
|
|
| MD5 |
52934ae4e65751f056056e6a79badb9b
|
|
| BLAKE2b-256 |
d1ebc45abf6c07f6e4a68059e217e925521638a22fd5ce6b7d7619ecaa3a4d46
|