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.
Metadata
Release files for mediatheque-agent 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mediatheque_agent-0.2.0.tar.gz | 34.9 kB | Without provenance | Details for mediatheque_agent-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mediatheque_agent-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for mediatheque_agent-0.2.0-py3-none-any.whl |
Total release size: 68.6 kB
Release files / mediatheque_agent-0.2.0.tar.gz
| Download URL | mediatheque_agent-0.2.0.tar.gz |
|---|---|
| Size | 34.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0be807671e42bc441dccd9522306a96694b940db30962707afcc3bd72b4f3886
|
|
BLAKE2b-256 checksum How to use checksums |
eb139b8f75fc125c4844699bff40d75d9f5d56f8965f2fa517a952e1d6776de6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / mediatheque_agent-0.2.0-py3-none-any.whl
| Download URL | mediatheque_agent-0.2.0-py3-none-any.whl |
|---|---|
| Size | 33.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f73eaad6d7a3cd38cba6229949b80965792e8f7616179978469f17f02c528e34
|
|
BLAKE2b-256 checksum How to use checksums |
d1ebc45abf6c07f6e4a68059e217e925521638a22fd5ce6b7d7619ecaa3a4d46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for mediatheque-agent 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.