parakeet-transcriber: one bad file aborts the entire batch (empty stdout, exit 1)
Summary
parakeet-transcriber --batch aborts the entire batch when any single file fails to load, producing empty stdout and exit code 1. One bad file (still image, corrupted media, iCloud-evicted/dataless file, unsupported codec) makes the whole timeline transcription fail with no results.
Evidence
In tools/parakeet-transcriber/Sources/main.swift, Phase 1 (around line 292):
for (index, entry) in batchEntries.enumerated() {
...
let result = try await manager.transcribe(fileURL, source: .system) // no per-file do/catch
asrResults.append(...)
}
A throw on any file propagates to the outer catch, prints Transcription failed: ... to stderr, sets exitCode = 1, and stdout stays empty.
Reproduced with a still image:
$ parakeet-transcriber --batch batch.json --model v3
ERROR:Transcription failed: The operation couldn't be completed. (com.apple.coreaudio.avfaudio error 1954115647.)
(empty stdout, exit 1)
In FCP this surfaces as: Parakeet transcription failed (exit code 1). Try switching to "Apple Speech" engine.
Note: whisper-transcriber already handles this correctly — its per-file do/catch appends {"file": ..., "words": [], "error": ...} and continues.
Suggested fix
Wrap each manager.transcribe call in a per-file do/catch (mirror whisper-transcriber's Phase 1), appending an error entry for that file and continuing with the rest. Consider pre-filtering non-audio UTTypes/extensions before the batch loop.