Repository navigation
Releases
v1.10.0: the sounds besides speech
Added
- The sounds besides speech. The digest gains a Sounds (besides speech)
section, after the transcript: the kinds of sound Apple's on-device classifier
(SoundAnalysis, 303 kinds) heard, one line per stretch, such as
00:00–00:40 music · pianoor00:03.00–00:04.00 door. Sounds that start
and end together share a line, strongest first, and speech is left out (the
transcript has it). A label counts at 0.6 confidence; under a voice the
classifier mostly hears the voice (some voices read as a buzz or a grunt), so
there only music (from 0.45) and loud, clear sounds (from 0.8) count, and the
section says so. A long video keeps its 20 longest lines and says how many it
left out. The transcriber gains a--soundsmode for it; the labels are made
once per video, kept insounds.jsonbeside the transcript, and shared by
every window. A transcriber built before them makes none: the digest says to
re-run setup.py (or, over an older prebuilt transcriber, install this
release's), and the next run labels the sounds, once per installed
transcriber.doctorwarns about such a transcriber.
Fixed
- A cached window shows what a later run redid. A video's transcript and
sound labels are shared by all its runs, so a run that redid them (for word
timings or sound labels) left every other window's cached digest showing the
old ones. A cache hit whose transcript or sound labels are newer than its
digest now rebuilds the digest from its cached files. Such a rebuild, and a
--summary-onlyhit, first waits for any run of the same video in flight,
so a run in another locale cannot swap the transcript mid-read. - A take named with a superscript digit no longer stops a folder. Sorting
the takes read a character such as²as a number and failed. - The skill no longer reads a repeated side-by-side timestamp as stillness.
The frame limit can leave the same gap, as the digest already said.
Changed
- The cache version is now 1.10.0, so each cached video re-extracts once on its
next run (downloaded media and transcripts are reused).
Transcriber
The prebuilt transcribe attached below is rebuilt with the --sounds mode (arm64, ad-hoc signed, SHA-256 ac83da03082d064d97983800fa9841bb41fd7aa29056975a2f84c9f3450cbe49). The README's setup command installs it, over an older prebuilt one too. A transcriber built from source gains sound labels by re-running setup.py.
Review
Reviewed with Codex (OpenAI) in four read-only rounds, one full review and three re-reads of the fixes; every finding was fixed before release.
v1.9.0: every spoken word timed
Added
- Every spoken word is timed. The on-device transcriber used to keep only
each segment's start and end; it now keeps every word's. On a short span (a
clip or--start/--endwindow of 15 s or less) each transcript paragraph is
followed by awords:line giving every word's start in the frames' own
MM:SS.ccformat, so a spoken word lines up with the frame named for the
same moment: a 5 s take shows exactly where "stretcher" lands. Every
on-device transcript also writestranscript.words.tsvbeside
transcript.json(start, end and the word, one per line) and the digest
points to it, for finding the exact moment something is said in a longer
video. Captions carry no word timings and say nothing about them. - Old transcripts gain word timings once. A cached transcript is reused
across runs, so one made before word timings is redone on its next run, the
same command included. A transcript now names the transcriber that made it
(by its SHA-256), and one made without word timings is redone once whenever
setup.py installs a different transcriber, never again by the same one.
Until then the digest says how to get them: re-run setup.py, or, over an
older prebuilt transcriber, install this release's.
Fixed
- A cached run never shows another locale's transcript. A video has one
transcript, shared by all its runs, so a run in another locale replaced the
one an earlier run's digest was built from; a folder run, or a
--summary-onlyre-render, then showed the other locale's words. A cached
run whose transcript no longer matches its locale now runs again. - Side-by-side sheets of a very tall video stay inside the vision cap.
A frame taller than the 1568 px cap made a sheet taller than it; its cells
now narrow until one row fits. - The side-by-side note no longer reads a repeated frame as the take holding
still: a frame cap leaves the same gaps.
Changed
- The cache version is now 1.9.0, so each cached video re-extracts once on its
next run (downloaded media is reused).
Transcriber
The prebuilt transcribe attached below is rebuilt with word timings (arm64, ad-hoc signed, SHA-256 e033381fd19600792152241519cb61b48ad2f21a793ace54343939ee7ce1a2e7). The README's setup command installs it, over an older prebuilt one too. A transcriber built from source gains word timings by re-running setup.py.
Review
Reviewed with Codex (OpenAI) in four read-only rounds; every finding was fixed before release.
v1.8.0: a folder of takes in one run, side by side
Added
- A folder of takes in one run. A folder holding two or more media files
used to be refused with "specify one". Now each take is watched in turn and
cached like a single video, and one digest comes back:# Folder:with the
numbered takes, then side-by-side sheets, one row per take showing the
same six moments of each (evenly spaced from its first frame to its last,
the nearest kept frame to each), then every take's own digest one heading
level down. An A/B review of generated takes is one sheet read. Takes run in
natural name order (take2beforetake10); one failing is reported and the
rest still run, and only every take failing fails the run.--start/--end
applies to every take,--summary-onlydrops the sheets, and--purgeon a
folder deletes every take's cache plus the folder's ownlocal_set_*entry,
which the 14-day cleanup also covers. Up to 50 takes per folder; a larger one
is refused, not cut short. New module:folder.py.
Fixed
- Hidden files no longer count as media in a folder. macOS writes a
._name.mp4AppleDouble file beside each file copied to a non-Apple disk; it
carries the media suffix but no media, so a folder holding one video on such
a disk was refused as holding two. Hidden files are now skipped. --start/--endnow narrows an audio file too. On an audio-only source
the window was dropped before the digest was written, so it showed the whole
transcript with no window line. It now shows only that stretch, under the
same "focused window" line a video gets.--purgewaits for a run still writing the video. It used to delete
the cache entry out from under a run in progress; now it waits for that
run to finish, then deletes.
Changed
- The cache version is now 1.8.0, so each cached video re-extracts once on its
next run (downloaded media is reused).
Transcriber
The prebuilt transcribe is unchanged since 1.7.0 and stays attached to v1.7.0 (SHA-256 4320ad2b590ffc64d11871bd6b06129246796bfe6157c6a7454dbdc7a4093d4a).
v1.7.0: the cache cleans itself up, short clips sampled every 0.25 s
Added
- The cache cleans itself up. After each run, the videos nobody has used
for 14 days are deleted, so the cache no longer grows without end (one
machine had 323 MB across 32 videos). A video's age runs from its last use:
every run on it, a cache hit included, stamps.last_used; an entry from
before the stamp is aged by its newest file. Every run holds a cache-wide
lock (.cleanup.lock) shared while it works, and the cleanup takes it
exclusively without waiting, so it stands down while any other run is in
flight and can never delete files a run is reading. Never deleted: the video
just watched, the entry a cached file lives in when that file is watched as a
local path, anything that is not alocal_*/url_*dir (bin/,
url_ids.json), a symlink, or a video whose own lock is held. A deleted
video's URL leavesurl_ids.jsontoo.WATCH_CACHE_MAX_AGE_DAYSsets the
age;0turns it off, and so does anything else that is not a number of
days, a blank value included (with a warning), so a slip can never widen it.
doctorreports the setting.
Changed
- Short clips are sampled about every 0.25 s, with no dedup. A clip or
focused window of 15 s or less used to get the 2 s floor like any video: a 5 s
generated take had frames at 0, 2 and 4 s, nothing after 4 s, and dedup could
drop one of those three. Measured on two 5 s takes at 0.25 s steps,
consecutive frames differ by 0–5 dhash bits, under the duplicate threshold of
6, while the take drifts 14–17 bits from its first frame; dedup compares each
frame with the last one it kept, so it kept about one a second and collapsed
the last second's motion. Such a span now keeps a frame about every 0.25 s
(the nearest source frame: 21 on the measured 5.04 s takes, steps of 0.27 s at
30 fps). The span is what the pass covers: a window is clipped to the clip's
length (--end 60on a 5 s take is short), and a URL whose probe has no
length uses the site's. A--floorfiner than 0.25 s still wins, and its
frame labels and names carry hundredths (t=00:04.25,
frame_0017_t00m04.25s.jpg), since whole seconds would label four frames
alike. The digest prints a gap under 1 s to two decimals, andframes.json
recordsdedup. Longer videos are sampled as before. The cache version is now
1.7.0, so each cached video re-extracts once on its next run (downloaded media
is reused).
Prebuilt transcriber
transcribe: the SpeechTranscriber CLI, arm64, ad-hoc signed. Install it
without Xcode:
python3 skills/watch/scripts/setup.py \
--transcribe-url https://github.com/OSideMedia/claude-video-mac/releases/download/v1.7.0/transcribe \
--transcribe-sha256 4320ad2b590ffc64d11871bd6b06129246796bfe6157c6a7454dbdc7a4093d4av1.4.0 — labeled contact sheets
Added
- Labeled contact sheets (
sheets.py, Phase 2b): the kept frames are tiled
into timestamp-labeled grid images (3x4 landscape / 4x2 portrait cells), and
the digest lists the sheets ahead of the individual frames. One sheet Read
replaces up to a dozen frame Reads (~75% fewer tokens on the visual layer);
individual full-size frames remain listed for close inspection. Rendered
with AppKit/Quartz (no new dependencies; the bundled ffmpeg's drawtext is
not relied on). Sheet build failures fall back to the frames-only digest.
Extraction contract bumped to 1.4.0 so pre-sheet caches regenerate; e2e
asserts a sheet is listed and exists on disk.
v1.0.0 — initial release
Initial release: on-device Apple Silicon pipeline — VideoToolbox decode,
scene-aware frame sampling, Apple Vision OCR, native captions or on-device
SpeechTranscriber, low-confidence hi-res re-pull, per-video caching.
v1.6.0: audit fixes, locale handling, chapters, doctor, CI
Audit release: 13 bug fixes, 8 gaps closed, 5 new components. Every fix landed
behind a unit or e2e assertion that failed on 1.5.0 first.
Fixed
- Podcast cover art was treated as video — ffprobe reports embedded album
art as avideostream (disposition.attached_pic=1), so a.m4a/.mp3
with artwork became a "64x64 @ 0fps" video and frames/OCR/sheets ran over
the artwork.probe()skips attached pictures. - Empty transcripts say why: "no speech detected" (transcription ran over
the audio and found nothing), "no audio track", "empty caption track", or
"transcription failed: …" — instead of "no captions and no audio" under a
header that saidspeechtranscriber (0 segments). A failed transcription
now leaves asource: errorrecord that is never reused. --localepicked the wrong caption track:--sub-langsfetched every
listed track andsorted(glob)[0]chose alphabetically, sofr-FR(and
it/ja/ko/pt/ru/zh) gotsource.en.vtt. Tracks are now ranked exact localesame language > English fallback, and a leftover
.vttis reused only
when it matches the locale or the same locale was requested before.- yt-dlp ran on every cache miss, including
--start/--endre-runs with
source.*already on disk. The download is skipped unless--no-cache. - Binaries lived inside the data cache (
~/.cache/claude-video-mac/bin),
so the documented "delete the cache dir" advice deleted 103 MB of
ffmpeg/ffprobe/transcribe and the size log counted them. New default
~/.local/share/claude-video-mac/bin; resolution orderWATCH_BIN_DIR→
new default → legacy~/.cache/…/bin→ in-reposkills/watch/bin→ PATH,
so an updated plugin keeps working beforesetup.pyis re-run; setup then
MOVES the legacy binaries and removes the other legacy copies.
cache_size_bytesno longer counts any bin dir;--purgenever touches one. - Bare playlist URLs downloaded the first entry while
--printkeyed the
cache on the last. Every yt-dlp call carries--playlist-items 1; alist=
URL withoutv=(or a/playlistpath) is refused with a clear message. - One undecodable frame failed the whole OCR pass (
CGImageSourceCreate ImageAtIndexreturnsNonefor a truncated JPEG;ex.maphad no per-frame
guard). Each frame now recordslines: []+error;ocr.jsonand the
digest header count the failures. Found on the way: pyobjc resolves module
attributes lazily and not thread-safely — the first concurrent lookups from
the OCR pool intermittently raisedKeyError('CGImageSourceCreateWithURL');
the symbols are now touched once on the calling thread before the pool starts. - Frame filenames past 1h read as the wrong time (
1:02:03→
t1m0203s); nowt01h02m03s(below an hour unchanged). - Portrait contact sheets rendered ~2048×1820, past the ~1.5k vision cap
(frames are extracted 512 wide in both orientations). The sheet's long side
is capped at 1568 px and the geometry comment describes the real cell sizes. --guards the source on every yt-dlp invocation.parse_tsrejected nothing:nan,inf,1e5, and1:-30(→ 30 s)
all parsed. Components must be unsigned decimals; numbers finite and ≥ 0.watch.mdis written atomically; the intermediate wav is unlinked even when
the transcriber fails;setup.pyno longer IndexErrors on an empty
swift --version.--purgeleft the URL inurl_ids.json— a plaintext watch history the
docs implied was gone.--purgedrops the entry;--purge-historydeletes
the file; the docs say what it is.
Added
tests/test_units.pyis pytest-collectable (def test_*) and still runs
as a script; 41 groups, framework-dependent checks skip without pyobjc.- Preflight names the interpreter: the "missing components" error prints
sys.executableand the exact"<python>" -m pip install …fix (three
python3s commonly coexist). - BCP-47 locale normalisation (
en_US/en-us→en-US) before the
cache key, and validation againstSpeechTranscriber.supportedLocales
(error listing the supported set) and Vision's OCR languages (warning; OCR
falls back to en-US). - transcribe CLI: segments are returned from the collector Task (the old
captured-varpattern is a Swift 6 language-mode error; the file now builds
under-swift-version 6); exit codes 2 usage / 3 speech model unavailable
(says it needs network once) / 4 transcription failure;transcribe --localesprints the supported locales as JSON; the install-model message
only prints whenAssetInventory.statusis not.installed. - Assembly-only flags leave the cache key:
--no-repull/--threshold
follow-ups (and--summary-only) reuse the extraction instead of
re-running frames + OCR + ASR. - setup.py: skips the Swift rebuild when the binary exists and a stored
SHA-256 ofmain.swiftis unchanged; architecture check (file/lipo) on
every pre-existing binary, not just-version; downloads use a 60 s
socket timeout; the zip is removed infinallyand a bad archive is a
reported failure rather than a traceback. - First failure wins: the frames+OCR and transcript phases run under
wait(FIRST_EXCEPTION); a failed transcription surfaces immediately instead
of after a minutes-long OCR pass, which is told to stop. - Smaller digest: the frames dir is printed once and each frame line is
t=MM:SS basename(~300 repeated absolute paths gone); SKILL.md tells
Claude to join dir + basename. The showinfo desync grid fallback is now a
timestamps_estimatedflag inframes.jsonand a header line in the digest. --summary-only: header + Video/Chapters + transcript + on-screen text,
no frame/sheet paths; served from the cache without re-extracting.- Chapters + site metadata from the ONE yt-dlp id call: the
--print
template also emits title, uploader, upload_date, duration, description and
%(chapters)j(tab-separated, JSON-encoded fields, parsed robustly);
stored inmeta.json;## Videoand## Chaptersblocks in the digest;
chapter starts are forced frame-sample points. Zero extra network; local
files simply have none. watch.py doctor: interpreter, each resolved binary with path/arch/
version, VideoToolbox, pyobjc, speech locales, Vision languages, cache
split media/bin,url_ids.jsoncount, bin dir in use; exit 1 on a missing
prerequisite.- CI (
.github/workflows/tests.yml): ubuntu, Python 3.11/3.12/3.13,
py_compile+ pytest. No macOS job — SpeechTranscriber needs macOS 26 and
no GitHub-hosted runner label for it is verified; e2e stays local. - Prebuilt transcribe:
scripts/release-transcribe.shbuilds, ad-hoc
signs, prints the sha256 and thegh release uploadcommand (not run);
setup.py --transcribe-url URL --transcribe-sha256 HEX(or
WATCH_TRANSCRIBE_URL/_SHA256) installs it after verification — no Xcode
needed when a release asset exists. - e2e suite grows to 33 assertions (assembly-only cache hits, locale
normalisation,--summary-only, frames-dir layout, purge/history, doctor,
bad timestamps).
Fix round (independent review of the release candidate, same day)
- CJK and regional on-screen text was lost (regression introduced in
this release's locale work): OCR kept a tag only if it matched Vision's
list literally, but Vision spells Chinese by script (zh-Hans,zh-Hant)
while SpeechTranscriber and users spell it by region (zh-CN,zh-TW), so
--locale zh-CNran OCR in en-US only and read nothing (measured: Vision
reads 中文识别测试 withzh-CN/zh-Hans, nothing withen-US). Regional
Latin tags (pt-PT,en-GB,fr-CA,de-AT,es-MX,it-CH) were cut
too. Now: region-only CJK maps to its script form, any locale whose
language Vision knows is passed through as requested, and only an unknown
language falls back to en-US. - Captioned sources in Arabic/Russian/Thai/… were refused (regression):
the locale gate raised for any tag outside SpeechTranscriber's list even
when the transcript would come from captions and OCR from Vision. The gate
is a warning at start; the hard failure moved intotranscribe.py, right
before the CLI is invoked, and says captions/OCR are not limited by it. - A failed phase no longer waits for its sibling's subprocess: the
survivor's ffmpeg/transcribe child is polled against the stop event and
killed; the executor shuts down withcancel_futures=True(measured before:
error at 0 s, exit after the 4 s sibling). setup.pymigration verifies the destination binary RUNS (-version/
usage exit) before deleting legacy copies, and replaces a native-but-broken
destination with a working legacy copy instead of forcing a re-download.- A prebuilt
transcribeis stamped with its own asset SHA-256 (not the
currentmain.swifthash), so an older asset never reads as "built from
this source"; an intact asset counts as up to date. - Chapter-start frames are exempt from perceptual dedup and thinning and are
marked(chapter start), so "every chapter start gets a frame" holds. parse_tsrejects minutes/seconds fields ≥ 60 (1:60parsed to 120 s);
/embed/videoseries?list=counts as a bare playlist;transcript.vttis
written atomically; SKILL.md no longer says only manual captions are used.- Tests: the
--summary-onlycache-miss path is pinned (watch.md on disk
must stay the FULL digest); the warning path and the transcription-time
refusal are covered with a fake locale list (the gate is inert on a
machine whosetranscribepredates--locales). - A bare
--locale en(orfr,de,zh…) failed at the transcription
step after all the frame/OCR work: the Python checks treatedenas
covered byen-US, but the CLI matches exactly and exited 3. A bare
language is now resolved to a full locale before the cache key (default
table ...
v1.5.0 — council-audit fixes
Fixes and improvements from a three-model council audit (Codex gpt-5.6-sol,
Gemini 3.1 Pro, Claude Opus — findings cross-verified before adoption).
Fixed
- Frame timestamps could silently desync on very long videos: ffmpeg's
%04dis a minimum width, so past 9,999 sampled frames the lexicographic
file sort interleaved (frame_10000betweenframe_1000andframe_1001)
and every frame got the wrongt=tag. Now%06d+ numeric sort. - Audio-only URLs work (podcasts, no-video streams): the format selector
gained a bare-audio fallback and the downloaded-file check accepts audio
extensions — previously these raised "yt-dlp produced no video file"
despite the documented support. --localeis honored end-to-end: the hi-res re-pull re-OCRd frames in
en-US regardless of locale (dropping non-English text exactly where OCR
needed help), and caption fetching only ever requested English tracks. The
re-pull also no longer replaces a multi-line reading with a
higher-confidence but sparser one.- A corrupt/truncated cache no longer bricks the video: unreadable
done.json/frames.jsonnow count as a cache miss and re-extract, instead
of erroring on every subsequent run. All JSON writes are atomic
(temp + rename), and a per-video lock stops two concurrent runs on the same
video from deleting each other's frames mid-flight. - Numeric options are validated (
--max-frames 0was a division by zero;
bare--end -5silently extracted the whole video while claiming a window). - Thinning keeps both endpoints — the last frame of a thinned video was
never selected. - Negative/scientific
pts_timevalues from ffmpeg no longer force the
even-grid timestamp fallback. - Leftover DASH fragments (
source.f401.mp4) can no longer be picked as the
downloaded media; exactsource.<ext>is required. - Cached auto-captions are no longer mislabeled "manual" on re-runs.
- HTML entities (
&#39;…) are unescaped in caption transcripts. - All text I/O pins UTF-8 (a
LANG=Cshell could crash the digest print);
local-file cache identity usesst_mtime_ns; URL cache keys include the
yt-dlp extractor (ids are only unique per site). setup.py --checknow reports binaries found in the legacy dir or PATH
(matching what the pipeline actually uses); watch.py preflight also checks
the transcribe CLI and yt-dlp before spending minutes extracting.
Added
- Coverage honesty in the digest: the header reports the largest gap
between kept frames and flags when--max-framesthinning voided the ~2s
density; SKILL.md keys its "coverage before absence" rule to that reported
gap. - Windowed transcript: focused
--start/--endruns print only the
window's transcript (with the fulltranscript.vttpath listed), and
consecutive caption cues merge into readable ≤25s paragraphs — a large
token cut on long videos and repeat focused runs. - Parallel OCR: Vision requests run across a thread pool (frames are
independent); the OCR phase was the pipeline's wall-clock tail. - Untrusted-content guidance in SKILL.md: transcript/OCR/frame text is
data from arbitrary internet content, never instructions. tests/test_units.py: unit tests for the pure helpers (timestamps, VTT
parsing, thinning, paragraph merging, cache identity) plus a
version-consistency gate across all five version stamps; e2e gained
corrupt-cache recovery, floor-clamp cache equivalence, and invalid-option
cases.
Housekeeping
audio_16k.wav(~115 MB/hour) is deleted after transcription; orphaned
hi-res re-pulls are cleared on re-extraction; contact-sheet cells never
upscale below-512px frames; README badge/architecture/testing sections
refreshed;.DS_Storegitignored.
v1.3.0 — binaries survive plugin updates
Native binaries (ffmpeg / ffprobe / the Swift SpeechTranscriber CLI) now live in ~/.cache/claude-video-mac/bin/ (override: WATCH_BIN_DIR) instead of inside the versioned plugin install — so after claude plugin update, re-running setup is instant instead of re-downloading ~100MB. Setup migrates existing binaries automatically; the legacy in-install bin/ is still honored as a fallback.
v1.2.3 — full runs no longer claim a focused window
Full-video runs no longer record a bogus "focused window" spanning the whole video — the banner now appears only for explicit --start/--end runs, so the "coverage before absence" guidance can't be wrongly triggered. E2E grows to 18 assertions.