Local AI tool that applies smooth, localized blur over explicit visuals in movies and TV files. No scene cutting, no audio changes.
Project description
PureFrame
Watch any movie with your family. Without cutting a single second.
PureFrame applies smart, localized blurs over explicit visuals — no cuts, no audio edits, no streaming, no subscription.
PureFrame is a local AI tool that finds explicit visuals in common video files — nudity, sexual activity, intense kissing — and applies a localized, smoothly-tracked blur over the flagged regions. No scene skipping. No audio cuts. No streaming, no cloud, no subscription. The full movie plays normally; you just don't see the parts you'd rather not.
Downloads
Pre-built binaries. Grab the latest release.
Desktop GUI (Tauri)
Native installer with the graphical UI:
- Windows — PureFrame_x64-setup.exe or
.msi - macOS (Apple Silicon) —
PureFrame_aarch64.dmg - macOS (Intel) —
PureFrame_x64.dmg - Linux —
.AppImage,.deb, or.rpm
CLI / standalone (PyInstaller)
No Python needed:
- Windows — pureframe-windows-x86_64.zip
- macOS (Apple Silicon) — pureframe-macos-arm64.tar.gz
- Linux (x86_64) — pureframe-linux-x86_64.tar.gz
Intel mac users: no standalone PyInstaller build (GitHub-hosted
macos-13runners are EOL'd and perpetually backlogged). Usepip install pureframeor the TauriPureFrame_0.1.4_x64.dmginstaller.
Extract anywhere, then run pureframe --help (Windows: pureframe.exe --help).
- Windows zip is fully self-contained — bundled
ffmpeg.exe+ffprobe.exe, no install required. - macOS / Linux tarballs require ffmpeg on PATH (
brew install ffmpeg/apt install ffmpeg).
Code signing
Binaries are not code-signed (no paid Apple/Microsoft certs yet).
- Windows: SmartScreen warns "Windows protected your PC" → click More info → Run anyway.
- macOS: Gatekeeper blocks "from an unidentified developer" → right-click the
.app/ binary → Open → confirm. Or runxattr -dr com.apple.quarantine /path/to/PureFrame.app. - Linux: no signing required.
Verify downloads against the SHA-256 sums attached to each release.
Install
# From PyPI
pip install pureframe
# From source (development)
git clone https://github.com/MayonaiseLover/PureFrame.git
cd PureFrame
pip install -e ".[dev]"
Requirements: Python 3.11+, FFmpeg installed and on PATH. GPU recommended but not required. See Installation Guide for platform-specific instructions, GPU setup, and troubleshooting.
Quick Start
# One-shot: detect and blur in a single pass
pureframe process movie.mp4 --output movie_clean.mp4
# Or split it: generate a plan, review it, then apply
pureframe plan movie.mp4 # → movie.censorplan.json
pureframe plan-edit movie.censorplan.json # Review in your editor
pureframe plan-whitelist movie.censorplan.json 3 # Whitelist false positive
pureframe apply movie.mp4 movie.censorplan.json # Render final output
# Preview flagged shots without watching the whole video
pureframe preview movie.censorplan.json # → HTML contact sheet
The plan file is plain JSON — open it, review every flagged shot, whitelist anything you disagree with, then apply. Nothing renders until you say so.
Content-Type Profiles
Different content needs different detection settings:
# Live-action movies and TV (default)
pureframe process movie.mp4 --content-type live-action
# Animated content (higher thresholds to reduce false positives)
pureframe process cartoon.mp4 --content-type animation
# Anime (tuned for anime art styles)
pureframe process anime.mkv --content-type anime
# Dark/low-light scenes (increased sensitivity)
pureframe process horror.mp4 --content-type low-light
Strictness Levels
Control how aggressively PureFrame flags content:
pureframe process movie.mp4 --strictness low # Minimal censoring
pureframe process movie.mp4 --strictness medium # Balanced (default)
pureframe process movie.mp4 --strictness high # Aggressive
pureframe process movie.mp4 --threshold 0.35 # Custom threshold
See Evaluation Report for threshold calibration guide.
Why PureFrame?
No scene skipping. Most "family-friendly" tools just fast-forward through flagged scenes. You lose dialog, plot, pacing. PureFrame applies a localized Gaussian blur tracked to bounding boxes — the scene plays normally, you just can't see what's behind the blur.
No cloud, no subscription. Everything runs on your machine. Your videos never leave your disk. Once the AI models download on first run (~400–500MB), PureFrame works fully offline. Zero telemetry.
Works on any local video file. VidAngel and ClearPlay only support a curated list of popular titles. PureFrame uses computer vision — it works on any MP4, MKV, AVI, or WebM you throw at it. Foreign films, indie movies, decades-old DVDs.
Audio-aware detection. An audio classifier runs alongside the visual pipeline to disambiguate ambiguous scenes — reducing false positives without sacrificing coverage.
Review before rendering. The plan command generates a JSON file with every detection, bounding box, confidence score, and reasoning. Inspect it, whitelist false positives, or adjust thresholds before committing to the render.
How It Works
flowchart TD
A[Input Video] --> B[Scene Detection]
A --> C[Audio Extraction]
B --> D[NudeNet Frame Analysis]
B --> D2[CLIP Scene Classification]
C --> E[PANNs Audio Classifier]
D --> F[Confidence Fusion]
D2 --> F
E --> F
F --> G[Censor Plan JSON]
G --> H[Review & Edit]
H --> I[FFmpeg Renderer]
I --> J[Clean Output Video]
- Scene detection splits the video into shots using adaptive threshold detection (PySceneDetect).
- NudeNet analyzes sampled frames for nudity with localized bounding boxes.
- CLIP provides scene-level semantic classification for sexual activity detection.
- PANNs classifies audio events (moaning detection) for context disambiguation.
- A confidence fusion engine combines all signals with configurable per-category thresholds.
- Results are written to a censor plan (
.censorplan.json) — fully editable before rendering. - The renderer applies tracked bounding-box blurs frame-by-frame and re-encodes with FFmpeg.
Comparison
| Feature | PureFrame | VidAngel / ClearPlay | Manual Editing |
|---|---|---|---|
| Cuts video length? | No — localized blur | Yes — skips scenes | Optional |
| Cost | Free & open source | $9.99/mo subscription | Expensive software |
| Requires internet? | No | Yes | No |
| Works on local files? | Yes | No — curated list only | Yes |
| Reviewable before apply? | Yes — JSON plan | No | N/A |
| Content-type profiles? | Yes | Limited | No |
| Audio-aware detection? | Yes | Varies | No |
| 100% offline? | Yes (after model download) | No | Yes |
Performance
Measured on author's machine: RTX 3060 12GB, i5-10400F, Pop!_OS.
| Profile | 30s synthetic 1080p clip | Extrapolated 90-min movie |
|---|---|---|
| HIGH | 25.96s | ~78 min |
| MEDIUM | 41.23s | ~124 min |
| LOW | 27.83s | ~83 min |
| CPU | 21.37s* | ~64 min* |
Synthetic zero-detection numbers. Real movies with detections will be slower.
pureframe process movie.mp4 --profile MEDIUM
See BENCHMARKS.md for full metrics and how to run benchmarks.
Desktop App (Experimental)
PureFrame includes an experimental Tauri desktop GUI with:
- ✅ File drag-and-drop queue
- ✅ Plan editor with color-coded timeline
- ✅ Shot-level thumbnail preview
- ✅ One-click whitelist/blacklist
- ✅ Hardware profile settings
- ✅ Detection sensitivity slider
- 🔜 Timeline scrubbing
- 🔜 Before/after preview
cd gui && npm install && npm run tauri dev
Known Limitations
PureFrame is honest about what it can and can't do. See KNOWN_LIMITATIONS.md for a full breakdown of false positive/negative categories, audio detection gaps, and rendering limitations.
Briefly:
- False positives happen on swimwear, skin-tone backgrounds, and stylized animation.
- Dark scenes reduce detection confidence. Use
--content-type low-light. - Not perfect. Some explicit content may slip through. PureFrame is a tool — not a replacement for parental judgment.
FAQ
Is this legal?
PureFrame is intended for private, local use on media files you legally possess. It does not bypass DRM, download media, upload media, or distribute altered copies. Laws vary by jurisdiction. This is not legal advice. See Legal.
Does it work offline?
Yes. After the first run downloads AI models (~400–500MB), PureFrame never makes a network request. Zero telemetry. See Privacy Policy.
Will it ruin the movie?
No. PureFrame never cuts audio, skips frames, or alters the timeline. It applies a localized blur tracked smoothly across frames. Pacing and narrative remain exactly as intended.
Can I review what gets filtered before applying?
Yes. Run pureframe plan to generate a .censorplan.json file. Every flagged shot includes category, confidence, reasoning, and bounding boxes. Whitelist anything you disagree with, then run pureframe apply. See Censor Plan Schema.
How do I choose the right threshold?
Start with --strictness medium (default). If you see false positives on swimwear/skin, use --strictness low. If explicit content slips through, use --strictness high. See the Confidence Calibration Guide.
Does it handle DRM or streaming?
No. PureFrame only processes local, unencrypted video files. It will not attempt to bypass DRM or intercept streaming content.
Where are models stored?
Models are cached in your system's standard cache directory (~/.cache/ on Linux, ~/Library/Caches/ on macOS, %LOCALAPPDATA%\cache\ on Windows). See Installation Guide for details and deletion instructions.
Documentation
| Document | Description |
|---|---|
| Installation Guide | Platform-specific install, GPU setup, troubleshooting |
| CLI Reference | All commands, options, and examples |
| Confidence Calibration | Threshold presets, content types, and tuning workflow |
| Known Limitations | False positives/negatives, edge cases, audio gaps |
| Evaluation Report | Detection accuracy and synthetic benchmarks |
| Censor Plan Schema | JSON schema reference |
| Architecture | Pipeline diagram and component details |
| Privacy Policy | Data handling and telemetry statement |
| Security Policy | Threat model and vulnerability reporting |
| Legal | Legal considerations and terms |
| Contributing | How to contribute |
| Changelog | Release history |
| Roadmap | Planned features |
| Benchmarks | Performance metrics |
| Examples | Example commands and censor plans |
Acknowledgments
PureFrame builds on excellent open-source work: NudeNet for nudity detection, PySceneDetect for shot boundary detection, CLIP for scene understanding, PANNs for audio classification, FFmpeg for video I/O, and Tauri for the desktop GUI.
Contributing
Contributions welcome! See CONTRIBUTING.md. Look for issues labeled good first issue.
License
Project details
Release history Release notifications | RSS feed
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 pureframe-0.1.0b14.tar.gz.
File metadata
- Download URL: pureframe-0.1.0b14.tar.gz
- Upload date:
- Size: 11.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9ea015336cb59df43a3da59f546640e7aaaac8243691e855d5ebbeb6792ce3c
|
|
| MD5 |
d4e7035e831195c87f69f1ac9738082c
|
|
| BLAKE2b-256 |
ec7f79614ea1d451a0dd2d4febd2683e5cc39c6044493f6689fb3bdf78e61a48
|
Provenance
The following attestation bundles were made for pureframe-0.1.0b14.tar.gz:
Publisher:
publish.yml on MayonaiseLover/PureFrame
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pureframe-0.1.0b14.tar.gz -
Subject digest:
d9ea015336cb59df43a3da59f546640e7aaaac8243691e855d5ebbeb6792ce3c - Sigstore transparency entry: 1547976774
- Sigstore integration time:
-
Permalink:
MayonaiseLover/PureFrame@69b18ffc9ebfdea4d8a2f3e3af6de5e8c52b697f -
Branch / Tag:
refs/tags/v0.1.0b14 - Owner: https://github.com/MayonaiseLover
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@69b18ffc9ebfdea4d8a2f3e3af6de5e8c52b697f -
Trigger Event:
push
-
Statement type:
File details
Details for the file pureframe-0.1.0b14-py3-none-any.whl.
File metadata
- Download URL: pureframe-0.1.0b14-py3-none-any.whl
- Upload date:
- Size: 10.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5522c50e1dc4f51fe43ec7bb056313c3384d23799d413bdea30184c2bf965825
|
|
| MD5 |
b04dea6ac59e632b94845ff73e9acd2c
|
|
| BLAKE2b-256 |
64ae45abe7abc261ef418ac6bf8342b5f8bf2e8990dd90615c6c34573a8d6979
|
Provenance
The following attestation bundles were made for pureframe-0.1.0b14-py3-none-any.whl:
Publisher:
publish.yml on MayonaiseLover/PureFrame
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pureframe-0.1.0b14-py3-none-any.whl -
Subject digest:
5522c50e1dc4f51fe43ec7bb056313c3384d23799d413bdea30184c2bf965825 - Sigstore transparency entry: 1547977060
- Sigstore integration time:
-
Permalink:
MayonaiseLover/PureFrame@69b18ffc9ebfdea4d8a2f3e3af6de5e8c52b697f -
Branch / Tag:
refs/tags/v0.1.0b14 - Owner: https://github.com/MayonaiseLover
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@69b18ffc9ebfdea4d8a2f3e3af6de5e8c52b697f -
Trigger Event:
push
-
Statement type: