Skip to content

Releases

v1.10.0: the sounds besides speech

Choose a tag to compare

@OSideMedia OSideMedia released this 29 Oct 23:45
fbc7515

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 · piano or 00: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 --sounds mode for it; the labels are made
    once per video, kept in sounds.json beside 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. doctor warns 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-only hit, 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

Choose a tag to compare

@OSideMedia OSideMedia released this 29 Oct 19:21
9e50a26

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/--end window of 15 s or less) each transcript paragraph is
    followed by a words: line giving every word's start in the frames' own
    MM:SS.cc format, 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 writes transcript.words.tsv beside
    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-only re-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

Choose a tag to compare

@OSideMedia OSideMedia released this 29 Oct 18:37
4311f22

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 (take2 before take10); one failing is reported and the
    rest still run, and only every take failing fails the run. --start/--end
    applies to every take, --summary-only drops the sheets, and --purge on a
    folder deletes every take's cache plus the folder's own local_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.mp4 AppleDouble 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/--end now 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.
  • --purge waits 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

Choose a tag to compare

@OSideMedia OSideMedia released this 29 Oct 15:41
f62f7d4

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 a local_*/url_* dir (bin/,
    url_ids.json), a symlink, or a video whose own lock is held. A deleted
    video's URL leaves url_ids.json too. WATCH_CACHE_MAX_AGE_DAYS sets the
    age; 0 turns 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.
    doctor reports 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 60 on a 5 s take is short), and a URL whose probe has no
    length uses the site's. A --floor finer 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, and frames.json
    records dedup. 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 4320ad2b590ffc64d11871bd6b06129246796bfe6157c6a7454dbdc7a4093d4a

v1.4.0 — labeled contact sheets

Choose a tag to compare

@OSideMedia OSideMedia released this 29 Oct 15:49
d05979e

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

Choose a tag to compare

@OSideMedia OSideMedia released this 29 Oct 15:49

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

Choose a tag to compare

@OSideMedia OSideMedia released this 27 Sep 03:28
ccc9f51

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 a video stream (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 said speechtranscriber (0 segments). A failed transcription
    now leaves a source: error record that is never reused.
  • --locale picked the wrong caption track: --sub-langs fetched every
    listed track and sorted(glob)[0] chose alphabetically, so fr-FR (and
    it/ja/ko/pt/ru/zh) got source.en.vtt. Tracks are now ranked exact locale

    same language > English fallback, and a leftover .vtt is reused only
    when it matches the locale or the same locale was requested before.

  • yt-dlp ran on every cache miss, including --start/--end re-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 order WATCH_BIN_DIR →
    new default → legacy ~/.cache/…/bin → in-repo skills/watch/bin → PATH,
    so an updated plugin keeps working before setup.py is re-run; setup then
    MOVES the legacy binaries and removes the other legacy copies.
    cache_size_bytes no longer counts any bin dir; --purge never touches one.
  • Bare playlist URLs downloaded the first entry while --print keyed the
    cache on the last. Every yt-dlp call carries --playlist-items 1; a list=
    URL without v= (or a /playlist path) is refused with a clear message.
  • One undecodable frame failed the whole OCR pass (CGImageSourceCreate ImageAtIndex returns None for a truncated JPEG; ex.map had no per-frame
    guard). Each frame now records lines: [] + error; ocr.json and 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 raised KeyError('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); now t01h02m03s (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_ts rejected nothing: nan, inf, 1e5, and 1:-30 (→ 30 s)
    all parsed. Components must be unsigned decimals; numbers finite and ≥ 0.
  • watch.md is written atomically; the intermediate wav is unlinked even when
    the transcriber fails; setup.py no longer IndexErrors on an empty
    swift --version.
  • --purge left the URL in url_ids.json — a plaintext watch history the
    docs implied was gone. --purge drops the entry; --purge-history deletes
    the file; the docs say what it is.

Added

  • tests/test_units.py is 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.executable and 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 against SpeechTranscriber.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-var pattern 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 --locales prints the supported locales as JSON; the install-model message
    only prints when AssetInventory.status is 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 of main.swift is unchanged; architecture check (file/lipo) on
    every pre-existing binary, not just -version; downloads use a 60 s
    socket timeout; the zip is removed in finally and 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_estimated flag in frames.json and 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 in meta.json; ## Video and ## Chapters blocks 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.json count, 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.sh builds, ad-hoc
    signs, prints the sha256 and the gh release upload command (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-CN ran OCR in en-US only and read nothing (measured: Vision
    reads 中文识别测试 with zh-CN/zh-Hans, nothing with en-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 into transcribe.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 with cancel_futures=True (measured before:
    error at 0 s, exit after the 4 s sibling).
  • setup.py migration 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 transcribe is stamped with its own asset SHA-256 (not the
    current main.swift hash), 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_ts rejects minutes/seconds fields ≥ 60 (1:60 parsed to 120 s);
    /embed/videoseries?list= counts as a bare playlist; transcript.vtt is
    written atomically; SKILL.md no longer says only manual captions are used.
  • Tests: the --summary-only cache-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 whose transcribe predates --locales).
  • A bare --locale en (or fr, de, zh…) failed at the transcription
    step
    after all the frame/OCR work: the Python checks treated en as
    covered by en-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 ...
Read more

v1.5.0 — council-audit fixes

Choose a tag to compare

@OSideMedia OSideMedia released this 01 Aug 01:32

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
    %04d is a minimum width, so past 9,999 sampled frames the lexicographic
    file sort interleaved (frame_10000 between frame_1000 and frame_1001)
    and every frame got the wrong t= 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.
  • --locale is 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.json now 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 0 was a division by zero;
    bare --end -5 silently 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_time values 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; exact source.<ext> is required.
  • Cached auto-captions are no longer mislabeled "manual" on re-runs.
  • HTML entities (&amp;#39; …) are unescaped in caption transcripts.
  • All text I/O pins UTF-8 (a LANG=C shell could crash the digest print);
    local-file cache identity uses st_mtime_ns; URL cache keys include the
    yt-dlp extractor (ids are only unique per site).
  • setup.py --check now 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-frames thinning voided the ~2s
    density; SKILL.md keys its "coverage before absence" rule to that reported
    gap.
  • Windowed transcript: focused --start/--end runs print only the
    window's transcript (with the full transcript.vtt path 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_Store gitignored.

v1.3.0 — binaries survive plugin updates

Choose a tag to compare

@OSideMedia OSideMedia released this 06 Jul 02:30

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

Choose a tag to compare

@OSideMedia OSideMedia released this 06 Jul 02:26

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.