Skip to content

Fix local Whisper on PyAV 19 and keep ChatGPT runs alive through a slow reply - #90

Open
JeremySNR wants to merge 77 commits into
mainfrom
ccr-8ee21b5a-opnw6d
Open

JeremySNR wants to merge 77 commits into
mainfrom
ccr-8ee21b5a-opnw6d

Conversation

@JeremySNR

Copy link
Copy Markdown
Owner

What does this change?

Fixes two bugs reported by users: #82 (reported by @RishavRajSingh44) and #83 (reported by @Ramadas108). Both reports were detailed enough to go straight to a fix.

#82: local Whisper crashes on its first file

  • I reproduced it. A fresh install today pulls faster-whisper 1.2.1 and PyAV 19.0.2, and decoding then fails with the reported TypeError: open() got an unexpected keyword argument 'metadata_errors'.
  • transcribe.py now decodes audio with Cutawan's bundled ffmpeg (the app passes ffmpegPath), not faster-whisper's PyAV. That fixes installs that are already broken as soon as people update, with no reinstall. If no ffmpeg path is given (an older app), it falls back to faster-whisper's own decoder as before.
  • New installs pin faster-whisper==1.2.1 and av>=11,<19. The manual steps in docs/chatgpt-subscription.md use the same pins.
  • Check setup now decodes a moment of audio, so a broken audio stack shows up at setup rather than on the first job.

#83: one slow ChatGPT reply loses the whole Get clips run

This follows the reporter's proposal, with two additions.

  • Retry: a request that hits our own 5-minute limit is retried once. A cancel or any other failure is never retried. Each attempt reserves its own slot, so the daily cap still bounds spending.
  • An answer already on disk is used: if a stalled run had already written a complete response.json, that answer is taken and no second request is made.
  • Addition: a hung output pipe no longer means waiting out the limit. If the Codex launcher exits but a process it started keeps the output pipe open, close never fires. We now finish 5 s after exit and stop whatever is left, instead of waiting the full 5 minutes. This is the "launcher finished but kept its stdio pipe open" case the report couldn't rule out.
  • Sign-in check: it has its own 15 s budget instead of sharing the request's.
  • Addition: clearer errors. A timeout now says so and includes the end of Codex's stderr (with credentials redacted). A cancel says "cancelled". Before, both read "cancelled or timed out".

Why?

Release notes

Under ## [Unreleased] → Fixed in CHANGELOG.md:

  • Local Whisper no longer fails on the first file after a fresh install. Existing installs work again after updating, with no reinstall.
  • A slow ChatGPT reply no longer loses the whole Get clips run: it's retried once, an answer already written is used, and errors say whether a request timed out or was cancelled.

How did you test it?

  • npm test: 152 files, 1373 passed, 1 skipped.
  • npm run typecheck
  • npm run lint
  • Checked the change in the running app. I couldn't: Hugging Face is blocked from this environment, so I had no Whisper model to download, and there is no ChatGPT login here. Each piece was tested directly instead:

Anything to watch out for?

  • Cost: a retry spends one more of the day's ChatGPT requests, and only after a 5-minute timeout. The cap still applies.
  • Grace kill: the 5 s grace after exit stops the process group. That's the same stop that Cancel already uses.
  • ffmpeg path: the ffmpeg passed in is FFMPEG_PATH, which already points at the unpacked binary in packaged builds. Older app versions don't send it, so the script falls back to faster-whisper's decoder.

Fixes #82
Fixes #83


Generated by Claude Code

Clip selection
- Analyse transcripts past ~20 minutes of speech in overlapping windows
  (overlap longer than the longest clip) and keep the best across all of
  them, instead of one request holding the whole transcript.
- Score each rubric part separately and sum in code; record the parts on
  the clip.
- Review endings and openings in batches of eight.
- ChatGPT sign-in keeps one request per stage (daily request cap).
- "Open on the hook" defaults on for API connections.

Speed
- Transcribe up to three chunks at once on hosted APIs; local Whisper and
  LAN/loopback servers stay sequential.
- Hosted analysis requests get their own queue of four.

Interface
- Score breakdown on clip cards and in the editor; fresh runs are no
  longer labelled "Legacy score".
- Hover a clip card to play that moment muted.
- Big-word caption styles drop commas and full stops in preview and export.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
…retch framing analysis

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
- Export opens the source once per distant moment instead of decoding the
  footage between, and measures loudness on the audio that plays.
- The editor timeline folds the middle of a long cut into a marker, and any
  cut's edges can be dragged.
- Joined clips are labelled on cards and in the editor; hover preview plays
  only their moments.
- B-roll and post captions use only the words a clip plays.
- Setup option, docs/joined-moments.md, release notes, demo fixture.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
…ings and rerank across windows

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
- Step a clip that opens on "And"/"But" back to the line it continues,
  only onto a line of six words or more.
- Over-length corrections say how long each part runs and what to keep,
  and aim for the middle of the length band rather than just under the cap.
- Long-range joins: show each line's length, show fewer lines per moment,
  one correction request, then trim whole sentences as a last resort
  (the result still goes through the join and ending reviews).
- Sharper outline matching: a promised story matches where it is
  delivered, not the first later mention of the topic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
A clip may run up to a quarter past the chosen length (never past three
minutes). Such a clip is kept whole instead of being cut back before its
payoff, loses a few ranking points from structure, and says why. Past the
ceiling it is repaired or trimmed as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
- A failed window no longer fails the whole analysis; the other parts are
  used and the run fails only if every part failed. A failed review batch
  stops further batches from being sent.
- The opening check runs after the opening review, so it judges each
  clip's final opening (no stale "opens on And" penalty).
- Visual discovery and visual-payoff repair keep to the length target;
  only transcript clips get the overrun allowance and its penalty.
- A penalty a part cannot absorb comes off the other parts.
- Hosted transcription primes later chunks with the opening of the first.
- Private IPv6, 0.0.0.0 and .internal/.lan hosts count as local Whisper.
- Docs and release notes give the true request counts for joining.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
- Every kept piece starts and ends on the source's frame grid, so each
  piece's picture and sound are the same length (no per-cut A/V wander).
  Inputs are found by piece midpoint so alignment can't misroute footage.
- A single stretch well inside the trim gets its own seek: cut footage at
  the start or end is neither decoded nor measured for loudness.
- Editorial assessments are not invalidated by pauses kept for activity.
- No cut-edge drag handle on top of the trim handle.
- Filmstrips work for file paths containing "|".
- Export progress for joined clips no longer stalls at 95%.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
Shared interface for the next release's diarization and excitement
analysis (written at transcription time) and clip selection (read).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
…d filmstrips

Small outward drags of a trim or join edge (up to 1.5 s past the analysed
footage) no longer re-run framing analysis: the focus track holds its edge
value and edge layout shots stretch. Re-measured gap activity prunes
removal choices that no longer name an active pause, and clicking a removed
pause acts on what the timeline shows. The editor filmstrip keeps only the
current panes and skips re-fetching held ones. The "Open on the hook"
default follows the AI connection until the user toggles it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
…marked for reuse

Thumbnails: up to eight candidate times inside what the clip plays (after
the hook line, the most energetic delivery, an even spread and the old
1.5 s frame) are decoded as small grey frames with a neighbour either side
in one ffmpeg call, then scored on sharpness (Laplacian variance),
contrast, entropy, exposure and steadiness against the neighbours, with
face presence when tracking exists. Any failure keeps the old frame.

Licence: yt-dlp's licence field is read on URL import, stored on the
project and shown as a non-blocking notice during the download and on the
setup screen when the video is not Creative Commons or says nothing. URL
imports can now be cancelled with an AbortSignal and clean up on failure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
Pause removal now keeps only the last take when a speaker restarts a
sentence or says it again almost word for word (shared/retakes.ts), shown
on the timeline like a removed pause and restorable with a click. The final
cleanup of computeKeptSegments runs to a fixpoint so no sliver or hairline
cut survives whatever order the earlier passes ran in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
Reaction features (loudness, spectral flux, flatness, high-band share)
stream in 50 ms hops; detection compares gap sound with the local floor
and speech level, and over-speech sound with the speaker's own level.
Thresholds come from synthetic ffmpeg sources measured by
scripts/calibrate-reactions.ts. Fbank matches kaldi-native-fbank for the
speaker embedding model. Exports the existing radix-2 FFT from mfcc.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
…opic boundaries, video-type guidance

The selection, ending, join and rerank prompts now carry what local
analysis knows about each line: its speaker (when there is more than one),
an audience reaction right after it, and where the topic changes
(TextTiling over all-MiniLM-L6-v2 sentence embeddings, downloaded on first
use with a pinned checksum and skipped when unavailable). Analysis windows
stretch outward to the nearest topic change. Each clip gets a kind, and the
first few clips are reordered to cover different kinds within bounds. The
setup screen's video type now adds a format paragraph to the selection
prompt, inferred from the transcript for auto. No new requests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
… mix

Shared sentence-level translated caption cards and dub cue/duck planning,
the translation request (one chat request per clip on every route), TTS
synthesis with per-project cache and slot fitting, and minimal hooks in
buildAss and the export audio graph.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
Voice-activity probabilities and the gap-activity motion and level series
are now kept per source file on disk (path, size, mtime, parameters and a
version as the key; atomic writes; nothing kept from a decode that reported
errors; LRU-bounded). Re-analysing a clip after a trim change decodes only
footage not yet measured; a threshold change decodes nothing. The timeline
filmstrip cache is now size-bounded and least-recently-used, and outline
cache files are bounded per project.

Gap-activity frames are lightly blurred before differencing so compression
shimmer no longer counts as motion; the synthetic cases were re-measured
and the core and bar adjusted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
…ps; batch queue

Export edit for…: the editor's export area can write the clip's cut list
as FCPXML 1.9 (Final Cut Pro, Resolve) or FCP7 XML (Premiere Pro, Resolve)
referencing the source by absolute file URL, at the source's exact frame
rate (NTSC rationals), with linked audio and an SRT of the same caption
groups the burned captions use, remapped to the output timeline.

Personalisation: clips each run produces are recorded locally with their
rubric parts, length, origin and kind; exports and trim/cut/caption edits
mark them kept. After eight kept clips, new runs are re-ranked after
highlight detection with per-part weights (kept mean / overall mean,
clamped to ±20%, renormalised) and a preferred length band. Parts are never
changed. The clips screen notes when a run was personalised, and Settings
has an on/off switch and a reset.

Batch queue: several files or links can be queued on the home screen and
are imported and analysed one at a time with the settings snapshot each was
added with, with per-item status, cancel, remove, retry and pause. The
queue is saved in userData and comes back paused after a restart, with
interrupted items requeued.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
…guidance

- Unit tests for clip kinds and the bounded variety reorder, speaker and
  reaction marks and the marked line format, TextTiling (scores, depth,
  boundaries, hierarchy, cache), the WordPiece tokenizer and pooling, and the
  video-type inference and paragraphs.
- Flow tests: marks reach the selection, ending, join and rerank requests;
  clip kinds are stored and tolerated when missing; the request sequence is
  identical with and without marks, on API keys and on ChatGPT sign-in.
- Topic boundaries settle on the lowest raw score within the smoothing width
  and must be at least 0.1 deep; windows prefer a coarse topic change.
- The join review section of docs/joined-moments.md mentions the new facts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
…d audio mix in the export

Shared planners for keyword emphasis, the cold-open output timeline, hook
title layout, face/burned-in-text caption placement and sound effects/music;
the ASS export and render graph use them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
…dub mix

Also size system fallback faces at a typical window span (CJK fallback text
overflowed at the unreadable-font default) and rebuild audio timestamps
before the duck envelope (loudnorm's late first block shifted it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
A 1080p source with an eight-second keyframe interval took about 4 s per
clip with eight candidates; six keep the hook, energy and spread picks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
…actions

The live two-voice check reported two false reactions besides the real
crowd: a second voice's first word, which Whisper timed 0.54 s after its
voice activity began, read as a gap sound; and ordinary stressed
syllables read as a jump over speech, because the median reference sat
8.5 dB under them. Leading word edges now snap to voice activity up to
0.8 s away, and the over-speech reference is the 85th percentile of
VAD-voiced frames within 30 s. Synthetic laughter, applause, impacts,
stings and over-speech laughter are all still caught.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
A reply numbered 2, 1, 3 or 1, 3, 3 with the right count was matched by
position, swapping or mislabelling captions. Position is now the fallback
only when some number falls outside 1..count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
A pause before a repeated opening read as a false start even when the
first attempt was a finished sentence, so "It was great. It was amazing,
really." lost its first sentence. A full stop in the abandoned attempt now
rules it out unless an explicit edit term says otherwise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
The ASS translation plan was built whatever the captions toggle said, so a
clip with captions off and a hook title burned its translated captions in,
though the preview showed none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
The preview overlay followed only detail-view caption moves, while the
export follows clipCaptionPositionRanges (faces, burned-in text, detail
views). The overlay now takes the same ranges the original captions use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
Protected ranges, the source spans freezes and black are compared with,
and mid-word cut times were all mapped without the cold open, so with one
every output time was early by its length: findings named the wrong times,
the source comparison read the wrong footage, and the tail dead-air trim
could cut a protected visual payoff. All three now map through the shared
clipTimeline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
update() only stored the new mix, so turning music or effects off, or a
trim that moved the cues, took effect only at the next pause or seek. A
change to what plays now resyncs from the last ticked time. Music started
from a one-shot loadedmetadata listener, so play-then-pause before the
metadata still started it and repeated syncs stacked listeners: stop() now
bumps a generation the start checks, and drops the pending listener.

Renderer unit tests live under tests/renderer and typecheck with the web
config (DOM types).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
A live Spanish dub of a 25 s clip cut four of six lines short: the
translation took ~40% longer to say than the English, the speech model's
faster take barely helped, and each take carried up to 0.58 s of silence
before the first word and 0.33 s after the last.

- Takes are trimmed to a breath either side when cached.
- Lines still too long at the fastest tempo get one request for shorter
  wording (dubScript.ts), voiced again; the captions keep the full
  translation and the review panel shows what was voiced.
- A take that comes back silent is never cached; a failed or silent faster
  take falls back to the first.

The same clip now has two overrunning lines, both in slots no voice could
fill (one is cut off by the clip end after 0.3 s).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
Segment ends round to the nearest frame while the asset's length counts
whole frames only, so a clip ending at the source's end could reference a
frame past it (10.03 s at 29.97 fps: frame 301 of 300). timelineSegments
now clamps to the source frame count the export passes in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
The download took the first caller's signal, so cancelling that job (or
the analysis controller aborted when transcription finished) killed a
download meant to carry on in the background, and rejected every other
caller waiting on it. The download now runs under its own timeout only; a
caller's signal abandons just its own wait. A failed download is latched
for the session so a persistent checksum mismatch does not fetch 30 MB on
every run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
The dub's audio elements were recreated whenever the cues were replanned,
which is on any clip edit, so typing the hook text cut off the line that
was speaking. They now follow only the files the cues play. Also drops the
unused TranslatedCaptionEvent.sourceMid.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
The card showed the kept footage only; the export also plays the cold
open first. The label now reads the shared clipTimeline's output duration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
music:list allow-lists every track in the music folder for media://, and
settings:update stored whatever folder the renderer named, so any folder
could be opened up. The renderer may now only clear the folder (or resend
the stored one); choosing one goes through music:chooseFolder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
A failed analysis saved nothing and marked nothing, so every regeneration
of an older project decoded the whole source again. Now:

- reaction features measured before ffmpeg exits non-zero on a damaged
  tail are kept (diarization, which needs the whole stream, is dropped);
- a failed reaction or diarization pass is recorded in the per-source
  marker beside project.json, so the backfill skips it next time;
- the decode stops as soon as neither consumer is still listening;
- a speaker model rejection no longer shares a try with reactions, so it
  cannot wipe them;
- the speaker model is only fetched when the source has speech, so silent
  or music-only sources never start the download.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
Speaker and topic detection run their own inference children but
reported a failure as "Automatic framing stopped". Each client now
names its own feature. Topic boundary files in outline-cache are pruned
like the outline files, which only matched their own prefix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
Five animated presets (Pop, Glide, Prism, Sweep, Spark) are planned in
src/shared (animatedCaptions.ts: pure scene-at-time with springs) and drawn
by one canvas module (captionCanvas.ts) that the preview and a hidden
export window both load. Export streams RGBA frames into ffmpeg's stdin and
overlays them where the ass filter was; any failure falls back to the
nearest libass style and says so in the export result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
Under load a queue's last background save could still be writing when a
test ended, so the cleanup failed with ENOTEMPTY.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
…r 0.16 features

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
…pop growth

Export results now carry the animated-caption fallback note to the editor
and clip grid; CI's smoke job runs scripts/test-animated-captions.sh; a
growing active word may only push 40% into each word gap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
…arrower fallback

- Probing rounds 30000/1001 to 29.97; fed back to ffmpeg that way, each
  caption frame landed just after its video frame and the overlay showed
  the previous one (106 of 120 frames a frame late at 29.97). NTSC rates
  now go to ffmpeg as their rationals; a real-ffmpeg test checks 29.97,
  59.94, 23.976, 30 and 25.
- Cancelling, or the caption window crashing, while the window starts up
  ends the wait at once instead of running out a 20 s timeout.
- Failures a standard-caption re-render would hit again (a full disk, an
  unwritable file, a GPU encoder the user insisted on) no longer trigger
  one.
- The hidden caption window no longer counts as an app window: on macOS
  the dock icon reopens the main window during an export, and elsewhere
  closing the last window mid-export quits instead of running on unseen.
- An early cancel no longer leaves an unhandled rejection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ
…ow reply

Local Whisper (#82): PyAV 19 removed an argument faster-whisper 1.2.1
passes when it opens audio, so every install made since failed on its
first file. transcribe.py now decodes with the bundled ffmpeg (matching
faster-whisper's own decoder to within one 16-bit step), which fixes
existing installs on update with no reinstall. New installs pin
faster-whisper 1.2.1 and PyAV below 19, and the setup check decodes a
moment of audio so a broken stack shows before the first job.

ChatGPT/Codex (#83): one request past its five-minute limit used to
lose the whole Get clips run.
- A timed-out request is retried once, only after our own timer (never
  a cancel). Both attempts are reserved, so the daily cap still holds.
- An answer a stalled run already wrote to disk is used instead of
  spending another request.
- A launcher that exits while a child keeps its output pipe open is
  settled five seconds after the exit instead of at the time limit.
- The sign-in check has its own 15 s budget.
- A timeout now says so, with the end of Codex's output; a cancel says
  cancelled.

Fixes #82
Fixes #83

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqojQVDwNbEqwSkac23iuJ

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants