redacting-sensitive-parts-of-screencast-videos
Made by JeffBlack-box sensitive content (custom strings, secrets, PII, open inbox) in macOS screen recordings. Use when redacting parts of a screencast (.mkv/.mp4/.mov) or a recording that leaked secrets.
From Jeffrey's Skills.md: professionally crafted skills for any AI agent, installed and kept in sync by the jsm CLI. Subscription only, $20/month.
Works With
Quality and Utility come from canonical skill metadata. Community ratings appear separately as stars when subscriber reviews exist.
Subscribe to download
Public previews are available, but downloads, CLI sync, and premium content require an active subscription.
Sign In to Subscribe- Full skill content with deterministic versioning
- CLI sync + local search index
- Access to Jeffrey’s premium library
Save to your account
Saved skills live in your cloud list. Run jsm sync on each machine to pull them locally.
What's New with this Skill
2Updates, enhancements, and release notes for this skill.
Updated: redacting-screencasts, the final check fails when text still leaks
verify_final.sh exited 0 even when it found restricted strings in the redacted video, so an agent checking the exit code believed the output was clean. It now exits 3 on leftover hits and 2 on a scan error. The OCR matcher also catches strings of 5 or more characters with one OCR error that it used to miss.
- verify_final.sh exits 3 when restricted text is still visible
- One-error OCR matches, including dropped letters, are caught for strings of 5+ characters
- Strings under 5 characters match exactly; add OCR variants as extra lines
Checked on synthetic OCR output and short test videos.
- verify_final.sh. Exit 0 means clean, 3 means leftover hits, 2 means the scan failed.
- scan.py fuzzy matching. Strings of 5 or more characters tolerate one OCR error per 5 characters, including dropped letters (
secretinsecrt,BigdealinBigceal), which the old 4-gram anchoring missed. Matching anchors on the largest q-gram size that cannot miss a real match; on a dense synthetic test the scan takes about 1.8x as long as before.
New: Redacting Screencast Videos, OCR every frame, fuzzy-match secrets, black-box them only while on screen
A screen recording can leak an API key, a client name, or your open inbox in a few frames. This skill samples the video at 1 fps, runs Apple Vision OCR over every frame (tesseract as a fallback), and scans for your restricted strings plus emails, IPs, tokens, and keys. Matching folds OCR garble (f0r, 10west) instead of relying on grep. You confirm each hit by eye, an ffmpeg drawbox covers it only while it is on screen, and the output is re-OCR'd until no restricted string is left.
- OCR garbles text, so the scanner can't just grep: it reads for as f0r and available as ava11ab1e, then folds look-alikes (vv to w, o to 0) and allows about one error per five characters. A literal string search misses the garbled occurrences that actually leak.
- Cover regions, not glyphs: an open inbox or dashboard exposes content everywhere, so you box the whole content area for the interval it's frontmost, using multi-box splits that wrap around a webcam overlay instead of hiding it.
- Time-gated drawbox: each cover is active only during enable='between(t,a,b)', so footage stays untouched the rest of the time. 1 fps sampling lags real time by up to a second, so intervals get padded and merged before encoding.
- Re-encode audio to AAC, never -c:a copy: copying an AAC track out of OBS/MKV carries priming and edit-list metadata that plays back garbled even though ffprobe shows an identical stream. fix_audio.sh repairs files that already shipped with copied audio.
- Proof comes from the output: detection on the source shows intent, but re-running OCR on the finished file is what proves coverage. A residual hit you can see in the frame is a real leak to widen; one you can't is a fuzzy false positive.
- The default detector set covers emails, IPs, tokens, private keys, and SSNs; the noisy detectors (credit_card, phone, high_entropy_hex) that fire on every order number and git hash stay opt-in via --defaults all.