{"record":{"id":"a2a818997d2cf8d8","repo":"diegosouzapw/OmniRoute","slug":"video-frames-could-not-be-described","errorCode":null,"errorMessage":"Video frames could not be described","messagePattern":"Video frames could not be described","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/lib/guardrails/videoBridgeHelpers.ts","lineNumber":629,"sourceCode":"        const caption = (await captionFrame(frame.dataUri, frame.timestampSeconds, signal)).trim();\n        if (caption) {\n          descriptions.push(\n            `${\n              contactSheet?.used\n                ? `contact-sheet[timestamps=${contactSheet.timestamps.map(formatVideoTimestamp).join(\",\")}]`\n                : `frame@t=${formatVideoTimestamp(frame.timestampSeconds)}`\n            } ${caption}`\n          );\n        }\n      } catch {\n        if (signal.aborted) {\n          throw new Error(\"Video Bridge processing timed out or was aborted\");\n        }\n        // Partial frame failures are omitted. An all-frame failure is handled below.\n      }\n    }\n    if (descriptions.length === 0) {\n      throw new Error(\"Video frames could not be described\");\n    }\n    let fusionTelemetry: VideoFusionTelemetry | undefined;\n    if (part.audioTranscript !== undefined) {\n      // Audio validation runs inside the fusion's audio branch on purpose: an\n      // invalid audioTranscript must surface as a partial fusion (video kept,\n      // failures.audio recorded), never fail the whole video description.\n      const fused = await fuseVideoAndAudio({\n        audio: async () => ({\n          observations: normalizeVideoTranscript(\n            part.audioTranscript,\n            extracted.durationSeconds\n          ).map((cue) => ({ ...cue, source: \"audio\" as const })),\n        }),\n        signal,\n        timeoutMs: options.timeoutMs,\n        video: async () => ({\n          observations: descriptions.map((text, index) => ({\n            confidence: 1,","sourceCodeStart":611,"sourceCodeEnd":647,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/guardrails/videoBridgeHelpers.ts#L611-L647","documentation":"Aggregate failure sentinel in describeVideoPart: frame captioning failed for enough frames that no usable description could be produced (individual frame failures are tolerated and skipped, but if the signal aborted or all frames failed, the video cannot be described). It converts per-frame catch-swallowed errors into a single descriptive error.","triggerScenarios":"Thrown at src/lib/guardrails/videoBridgeHelpers.ts:629 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect logs for the per-frame caption errors that were skipped before this aggregate","Retry captioning with a smaller frame budget or a different caption model","Return a degraded response (transcript/structural data only) instead of failing the whole request"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}