diegosouzapw/OmniRoute · error
Video Bridge processing timed out or was aborted
Error message
Video Bridge processing timed out or was aborted
What it means
Error "Video Bridge processing timed out or was aborted" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/lib/guardrails/videoBridgeHelpers.ts:353
/**
* Expand a final caption budget into the bounded pool evaluated by visual deduplication.
*
* @param frameCount - Requested number of frames that may reach captioning.
* @returns One candidate for a one-frame budget, otherwise twice the budget capped at 16.
*/
export function resolveVideoDedupCandidateFrameCount(frameCount: number): number {
const normalizedFrameCount = Number.isFinite(frameCount) ? Math.floor(frameCount) : 1;
const finalFrameCount = Math.max(
1,
Math.min(VIDEO_DEDUP_MAX_CANDIDATE_FRAMES, normalizedFrameCount)
);
if (finalFrameCount === 1) return 1;
return Math.min(VIDEO_DEDUP_MAX_CANDIDATE_FRAMES, finalFrameCount * 2);
}
function throwIfVideoDedupAborted(signal?: AbortSignal): void {
if (signal?.aborted) throw new Error("Video Bridge processing timed out or was aborted");
}
/**
* Compare JPEG frames using the versioned 16x16 grayscale visual policy.
*
* @param previous - Last frame retained by deduplication.
* @param current - Candidate frame being evaluated.
* @param signal - Optional request cancellation signal checked around asynchronous image work.
* @returns The larger of mean luma delta and the ratio of materially changed cells.
* @throws When cancelled or when either frame cannot be decoded as a JPEG data URI.
*/
export async function compareVideoFramesByGrayscale(
previous: VideoCaptionFrame,
current: VideoCaptionFrame,
signal?: AbortSignal
): Promise<number> {
throwIfVideoDedupAborted(signal);
const decode = (dataUri: string): Buffer => {View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/lib/guardrails/videoBridgeHelpers.ts:353 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Timeouts: ETIMEDOUT, deadlines, and hung requests — what actually expires when a request times out.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/585e6c3b52c28e9e.
Report an issue: GitHub.