From e15acfcf73b108c040f7f5da8d8a2d9a399172f4 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 17 Nov 2026 12:03:30 +0100 Subject: tools: video, transcribe local and online videos video.sh takes an absolute path or an http(s) URL. Uploader subtitles (it/en) when the URL has them, else whisper large-v3-turbo on the CPU, so the loaded model keeps the GPU. The transcript goes to $ASSISTANT_DIR/.md and opens; the model gets the path first and the start of the text. Over 30 minutes it asks first. The daemon now kills a running tool's process group on stop: a transcription can run for minutes. A video attachment reaches the model as its path only, for the tool. Co-Authored-By: Claude Opus 5.5 --- .../specs/2026-11-17-video-transcript-design.md | 23 ++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'docs/superpowers') diff --git a/docs/superpowers/specs/2026-11-17-video-transcript-design.md b/docs/superpowers/specs/2026-11-17-video-transcript-design.md index ad1d268..6422200 100644 --- a/docs/superpowers/specs/2026-11-17-video-transcript-design.md +++ b/docs/superpowers/specs/2026-11-17-video-transcript-design.md @@ -1,6 +1,6 @@ # Video transcript tool: design -Date: 2026-11-17. Status: proposed. +Date: 2026-11-17. Status: implemented, live check pending. ## Goal @@ -151,13 +151,20 @@ image: the model gets the path for the tool, nothing else. Chip kind ### Check -`video.sh --test`, like `test-clone.sh`: a generated 5 s clip (`ffmpeg --f lavfi` sine plus `flite` or a stored speech sample from outside the -repo) as mp4 and mkv; a source with no audio; a relative path; the -30-minute refusal on a fake duration; slug collisions; the output -starting with the path line. URL steps against a `file://` source are -not possible with yt-dlp's generic extractor rules, so they are covered -by the live check only. +`test-video.sh`, like `test-clone.sh`: an espeak-ng sentence in an +mp4 (Opus: this ffmpeg has no AAC encoder) through the real whisper, +twice for the slug collision; an mkv with no audio; a relative and a +missing path; a real 31-minute silent webm for the refusal; a stale +temp folder removed, a fresh one kept. yt-dlp is a stub driven by +environment variables: uploader subtitles in it and en (the spoken +language picked, header, NOTE, tags and repeated cues stripped), no +subtitles (audio through whisper), an unavailable video, an unknown +length, a long one, and 400 cues whose output stays under the cap +with the path line first. + +whisper drops the last word of a clip that ends on it, even with 2 s of +silence after (espeak's "tool." in the test); real videos rarely end +mid-sentence. ### Live check -- cgit v1.2.3